-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (55 loc) · 1.03 KB
/
docker-compose.yml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: "3.4"
volumes:
astro_node_modules:
services:
web:
image: nginx
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
ports:
- 7800:7800
depends_on:
- ui
- api
command: [nginx-debug, '-g', 'daemon off;' ]
ui:
build: ui
image: ui
restart: "no"
volumes:
- ./ui/:/app
- astro_node_modules:/app/node_modules
ports:
- 7778:7778
depends_on:
- api
env_file:
- project.env
api:
build: api
image: api
restart: "no"
volumes:
- ./api/:/app
ports:
- 7777:7777
depends_on:
- database
- flyway
env_file:
- project.env
database:
container_name: dab-p3-database-d474dc5b-41ab-4675-a7f4-7f1ce5aadcc3
image: postgres:14.1
restart: "no"
env_file:
- project.env
flyway:
image: flyway/flyway:8.4.0-alpine
depends_on:
- database
volumes:
- .:/flyway/sql
command: -connectRetries=60 -baselineOnMigrate=true migrate
env_file:
- project.env