-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
68 lines (63 loc) · 1.69 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
version: '3.5'
services:
api:
build:
context: ./back
dockerfile: "Dockerfile"
container_name: arsfestapi
restart: always
environment:
- DB_HOST=${DB_HOST:-arsfestdb}
- DB_USER=${DB_USER:-arsfest}
- DB_PW=${DB_PW:-arsfest}
- DB_NAME=${DB_NAME:-arsfest}
- PORT=${APP_PORT:-5000}
- INVITED_REG_OPENS=${INVITED_REG_OPENS:-9 February 2023 12:00}
- INVITED_REG_CLOSES=${INVITED_REG_CLOSES:-17 February 2023 00:00}
- NORMAL_REG_OPENS=${NORMAL_REG_OPENS:-20 February 2023 12:00}
- NORMAL_REG_CLOSES=${NORMAL_REG_CLOSES:-12 March 2023 00:00}
- PARTICIPANT_LIMIT=${PARTICIPANT_LIMIT:-235}
- SILLIS_REG_OPENS=${SILLIS_REG_OPENS:-20 February 2023 12:00}
- SILLIS_REG_CLOSES=${NORMAL_REG_CLOSES:-11 March 2023 00:00}
- SILLIS_LIMIT=${SILLIS_LIMIT:-300}
- AFTERPARTY_REG_OPENS=${AFTERPARTY_REG_OPENS:-20 February 2023 12:00}
- AFTERPARTY_REG_CLOSES=${AFTERPARTY_REG_CLOSES:-11 March 2023 00:00}
- AFTERPARTY_LIMIT=${AFTERPARTY_LIMIT:-300}
depends_on:
- db
networks:
- db
- api
ui:
build:
context: ./front
dockerfile: "Dockerfile"
container_name: arsfestui
restart: always
depends_on:
- db
- api
ports:
- 8000:8000
networks:
- db
- api
db:
container_name: arsfestdb
image: postgres:14-alpine
environment:
- POSTGRES_USER=${DB_USER:-arsfest}
- POSTGRES_PASSWORD=${DB_PW:-arsfest}
- POSTGRES_DB=${DB_NAME:-arsfest}
networks:
- db
volumes:
- /var/lib/postgresql/data/:/data/db
volumes:
db-data:
driver: local
networks:
db:
driver: bridge
api:
driver: bridge