-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
65 lines (61 loc) · 1.16 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
services:
frontend:
build:
context: ./frontend-app/
dockerfile: Dockerfile.prod
environment:
- NEXT_PUBLIC_ENVIRONMENT
- NEXT_PUBLIC_API_URL
networks:
- my_network
ports:
- "3000:3000"
depends_on:
- backend
backend:
build:
context: ./backend-app/
dockerfile: Dockerfile.prod
environment:
- FASTAPI_SECRET_KEY
- FASTAPI_HASH_ALGORITHM
- ACCESS_TOKEN_EXPIRE_MINUTES
- USER_DB_URL
- FILE_DB_URL
networks:
- my_network
ports:
- "8000:8000"
depends_on:
- userdb
- filedb
userdb:
image: postgres:13
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
volumes:
- userdb_data:/var/lib/postgresql/data
ports:
- "5433:5432"
networks:
- my_network
filedb:
image: postgres:13
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
volumes:
- filedb_data:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- my_network
volumes:
userdb_data:
filedb_data:
networks:
my_network:
driver: bridge