-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
33 lines (31 loc) · 753 Bytes
/
compose.yaml
File metadata and controls
33 lines (31 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
services:
legacy:
build: ./legacy
ports:
- "${LEGACY_PORT}:8080"
networks:
- spring-sparrow
volumes:
- ./legacy/target/legacy-1.0.war:/usr/local/tomcat/webapps/ROOT.war
- ./legacy/context.xml:/usr/local/tomcat/conf/context.xml:ro
- ./legacy/server.xml:/usr/local/tomcat/conf/server.xml:ro
env_file:
- .env
db:
image: mysql:9.6.0
environment:
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASSWORD}
ports:
- "${DB_PORT}:3306"
networks:
- spring-sparrow
volumes:
- ./db/mysql:/var/lib/mysql
env_file:
- .env
networks:
spring-sparrow:
driver: bridge