forked from Gulianrdgd/Bussen--online-drinking-game
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml.example
68 lines (62 loc) · 1.84 KB
/
docker-compose.yml.example
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:
games-nginx:
container_name: 'games_nginx'
image: nginx:latest
ports:
- '80:80'
restart: 'always'
volumes:
- './media/:/games/media/'
- './static/:/games/static/'
- './nginx/conf.d:/etc/nginx/conf.d'
- './nginx/nginx.conf:/etc/nginx/nginx.conf'
networks:
- backend-django-games
games-postgres:
container_name: 'games_postgres'
image: 'postgres:11.5'
restart: 'always'
volumes:
- './database/:/var/lib/postgresql/data/'
- './database_init/:/docker-entrypoint-initdb.d/'
environment:
PGDATA: '/var/lib/postgresql/data/pgdata'
networks:
- backend-django-games
games-redis:
container_name: 'games_redis'
image: redis:latest
restart: 'always'
volumes:
- './redis-data:/data'
networks:
- backend-django-games
games-django:
image: "docker.pkg.github.com/kioui/games/games:latest"
restart: 'always'
container_name: games_django
depends_on:
- 'games-nginx'
- 'games-postgres'
- 'games-redis'
expose:
- '8000'
volumes:
- './static:/games/src/website/static/'
- './media:/games/src/website/media/'
- './log/:/games/log/'
environment:
DJANGO_SECRET_KEY: '[django_secret_key]'
POSTGRES_HOST: 'games_postgres'
POSTGRES_NAME: 'django'
POSTGRES_USER: 'django'
POSTGRES_PASSWORD: '[postgres_password]'
VIRTUAL_HOST: '[hostname]'
VIRTUAL_PROTO: 'uwsgi'
networks:
- backend-django-games
networks:
backend-django-games:
driver: bridge