-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
104 lines (101 loc) · 2.14 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
version: '3.9'
services:
database:
container_name: eve_database
restart: unless-stopped
build:
context: .
dockerfile: ./database/Dockerfile
env_file:
- ./.env
networks:
- network
ports:
- 5432:5432
volumes:
- database:/var/lib/postgresql/data
migrate:
container_name: eve_migrate
restart: unless-stopped
build:
context: .
dockerfile: ./migrate/Dockerfile
args:
with_dev_dependencies: true
env_file:
- ./.env
networks:
- network
volumes:
- ./migrate:/eve/migrate
- ./common:/eve/common
- /eve/node_modules
depends_on:
database:
condition: service_healthy
command: ['npm', 'run', 'watch', '--workspace=migrate']
worker:
container_name: eve_worker
restart: unless-stopped
build:
context: .
dockerfile: ./worker/Dockerfile
env_file:
- ./.env
networks:
- network
volumes:
- ./worker:/eve/worker
- ./common:/eve/common
- /eve/node_modules
depends_on:
database:
condition: service_healthy
command: ['npm', 'run', 'watch', '--workspace=worker']
graphql:
container_name: eve_graphql
restart: unless-stopped
build:
context: .
dockerfile: ./graphql/Dockerfile
env_file:
- ./.env
networks:
- network
ports:
- 5433:5433
volumes:
- ./graphql:/eve/graphql
- ./common:/eve/common
- /eve/node_modules
depends_on:
database:
condition: service_healthy
command: ['npm', 'run', 'dev', '--workspace=graphql']
client:
container_name: eve_client
restart: unless-stopped
build:
context: .
dockerfile: ./client/Dockerfile
args:
- GRAPHQL_URL
env_file:
- ./.env
networks:
- network
ports:
- 3000:3000
volumes:
- /eve/node_modules
- /eve/client/.next
- ./client:/eve/client
- ./common:/eve/common
command: ['npm', 'run', 'dev', '--workspace=client']
depends_on:
graphql:
condition: service_healthy
networks:
network:
volumes:
database: