forked from francuza9/ft_transcendence
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
71 lines (67 loc) · 1.54 KB
/
docker-compose.yml
File metadata and controls
71 lines (67 loc) · 1.54 KB
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
69
70
71
services:
nginx:
build:
context: ./dockers/nginx
dockerfile: Dockerfile
container_name: nginx
ports:
- "80:80"
- "443:443"
networks:
- pong-network
volumes:
- ./dockers/nginx/ssl:/etc/nginx/ssl
- ./dockers/django/src/transcendence/staticfiles:/staticfiles
depends_on:
- django
django:
build:
context: ./dockers/django
dockerfile: Dockerfile
container_name: django
ports:
- "8000:8000"
volumes:
- ./dockers/django/src:/code
depends_on:
- db
networks:
- pong-network
environment:
SECRET_KEY: ${SECRET_KEY}
ALLOWED_HOSTS: ${ALLOWED_HOSTS}
DEBUG: ${DEBUG}
DB_NAME: ${DB_NAME}
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
DB_HOST: ${DB_HOST}
DB_PORT: ${DB_PORT}
GITHUB_CLIENT_ID: ${GITHUB_CLIENT_ID}
GITHUB_CLIENT_SECRET: ${GITHUB_CLIENT_SECRET}
FORTY_TWO_CLIENT_ID: ${FORTY_TWO_CLIENT_ID}
FORTY_TWO_CLIENT_SECRET: ${FORTY_TWO_CLIENT_SECRET}
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
db:
build:
context: ./dockers/postgresql
dockerfile: Dockerfile
container_name: db
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
networks:
- pong-network
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
pong-network:
driver: bridge
volumes:
pgdata: