-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (53 loc) · 1.1 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
version: "3.7"
services:
db:
image: postgres
container_name: CMS-database
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- database-data:/var/lib/postgresql/data
ports:
- 5432:5432
db-migrator:
build:
context: ./backend
args:
- ENV=development
command: sh -c "yarn db:retryable-migrate && yarn db:seed:docker"
depends_on:
- db
image: backend
backend:
build:
context: ./backend
image: backend
container_name: CMS-backend
command: yarn start
depends_on:
- db
- db-migrator
ports:
- 8080:8080
volumes:
- ./backend/:/backend
- backend-modules:/backend/node_modules
frontend:
build:
context: ./frontend
container_name: CMS-frontend
command: yarn start
ports:
- 3000:3000
volumes:
- ./frontend/:/frontend
- frontend-modules:/frontend/node_modules
volumes:
database-data:
driver: local
test-database-data:
driver: local
backend-modules:
frontend-modules: