-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
57 lines (56 loc) · 1.27 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
services:
db:
image: postgres:15.3-alpine
restart: always
environment:
- POSTGRES_USER=$POSTGRES_USER
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
volumes:
- $PWD/database/data:/var/lib/postgresql/data
- $PWD/db/init.sql:/docker-entrypoint-initdb.d/init.sql:ro
networks:
- tournoi
api:
build: backend
depends_on:
- db
restart: always
environment:
- SENTRY_DSN=$SENTRY_DSN
- EXTERNAL_URL=$EXTERNAL_URL
- ADMIN_EMAIL=$ADMIN_EMAIL
- JWT_SECRET_KEY=$JWT_SECRET_KEY
- POSTGRES_USER=$POSTGRES_USER
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
- TOKEN_JSON=$TOKEN_JSON
- CREDENTIALS_JSON=$CREDENTIALS_JSON
networks:
- tournoi
export:
build: export
depends_on:
- db
- api
restart: always
environment:
- ADMIN_EMAIL=$ADMIN_EMAIL
- JWT_SECRET_KEY=$JWT_SECRET_KEY
- POSTGRES_USER=$POSTGRES_USER
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
- CLIENT_SECRET_JSON=$CLIENT_SECRET_JSON
networks:
- tournoi
frontend:
build: frontend
depends_on:
- api
restart: always
ports:
- "0.0.0.0:41080:80"
networks:
- tournoi
networks:
tournoi:
ipam:
config:
- subnet: 172.28.43.0/24