-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
48 lines (45 loc) · 967 Bytes
/
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
version: "3"
services:
back:
restart: always
build:
context: .
args:
REACT_APP_PHUX_YEAR: 2022
ports:
- "8000:8000"
container_name: back_phux
networks:
- db
# Add the reverse proxy network here
environment:
- API_PORT=8000
- DB_USER=postgres
- DB_PASSWORD=postgres
- DB_NAME=phuxdb
- DB_HOST=db
- SECRET=kossusmakarbasturmetalkopp2021
depends_on:
- db
db:
container_name: phux-db
image: postgres:16.1-alpine3.18
ports:
- "5432:5432" # For being able to connect from host to container database
networks:
- db
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=phuxdb
- POSTGRES_HOST=phuxdb
- POSTGRES_PORT=5432
volumes:
- ./db-data:/var/lib/postgresql/data/
restart: always
volumes:
db-data:
driver: local
networks:
db:
driver: bridge