-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (66 loc) · 1.17 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
version: '3.8'
networks:
app:
driver: bridge
services:
database:
build:
dockerfile: packages/database/Dockerfile
context: .
restart: always
networks:
- app
env_file:
- .env
ports:
- ${POSTGRES_PORT}:5432
expose:
- ${POSTGRES_PORT}
cache:
build:
dockerfile: packages/cache/Dockerfile
context: .
args:
REDIS_USER: ${REDIS_USER}
REDIS_PASS: ${REDIS_PASS}
REDIS_PORT: ${REDIS_PORT}
restart: always
networks:
- app
env_file:
- .env
ports:
- ${REDIS_PORT}:6379
expose:
- ${REDIS_PORT}
backend:
build:
dockerfile: packages/backend/Dockerfile
context: .
networks:
- app
env_file:
- .env
- .env.production
ports:
- ${BE_PORT}:${BE_PORT}
expose:
- ${BE_PORT}
depends_on:
- database
- cache
frontend:
build:
dockerfile: packages/frontend/Dockerfile
context: .
networks:
- app
env_file:
- .env
- .env.production
ports:
- ${FE_PORT}:${FE_PORT}
expose:
- ${FE_PORT}
depends_on:
- backend