-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.prod.yml
68 lines (60 loc) · 1.19 KB
/
docker-compose.prod.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
version: '3.3'
services:
frontend:
build:
context: frontend
dockerfile: Dockerfile.prod
expose:
- 3000
networks:
- internal
restart: always
reverse_proxy:
build: reverse_proxy
ports:
- "3000:3000"
depends_on:
- frontend
- backend
networks:
- internal
restart: always
backend:
build:
context: backend
dockerfile: Dockerfile.prod
expose:
- 3000
networks:
- internal
volumes:
- "avatar:/srv/uploads/avatar"
restart: always
environment:
DB_PASSWORD: ${DB_PASSWORD}
JWT_SECRET: ${JWT_SECRET}
FT_CLIENT_ID: ${FT_CLIENT_ID}
FT_CLIENT_SECRET: ${FT_CLIENT_SECRET}
FT_REDIRECT_URL: ${FT_REDIRECT_URL}
BASE_URL: ${BASE_URL}
AVATAR_API: ${AVATAR_API}
AVATAR_SAVE: ${AVATAR_SAVE}
database:
build:
context: db
dockerfile: Dockerfile
expose:
- 5432
volumes:
- "database:/var/lib/postgresql/data"
networks:
- internal
restart: always
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
DB_PASSWORD: ${DB_PASSWORD}
volumes:
database:
avatar:
networks:
internal: