-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (67 loc) · 1.54 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
69
70
71
72
73
74
version: '3.8'
# Prefixes:
# - cds: card-deck-server
services:
cds:
image: docker.pkg.github.com/cardsity/card-deck-server/cardsity-deck-server:latest
restart: always
networks:
- cardsity
depends_on:
- cds_db
environment:
DJANGO_AUTOMATIC_MIGRATE: 'yes'
DJANGO_COLLECTSTATIC: 'yes'
SLEEP: "10"
SECRET_KEY: ${DJANGO_SECRET_KEY}
ALLOWED_HOSTS: ${DJANGO_ALLOWED_HOSTS}
MYSQL_USERNAME: ${MYSQL_USERNAME}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_HOST: "cds_db:3306"
volumes:
- cds_static:/app/static
cds_db:
image: mariadb
restart: always
networks:
- cardsity
environment:
MYSQL_USER: ${MYSQL_USERNAME}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
volumes:
- cds_db:/var/lib/mysql
server:
image: docker.pkg.github.com/cardsity/game-server/cardsity-game-server:latest
restart: always
networks:
- cardsity
depends_on:
- cds
ports:
- "9012:9012"
volumes:
- ./ssl:/app/cert:ro
nginx:
build: Dockerfiles/nginx
restart: always
networks:
- cardsity
depends_on:
- cds
environment:
HOST_DECK_SERVER: ${HOST_DECK_SERVER}
HOST_FRONTEND: ${HOST_FRONTEND}
volumes:
- cds_static:/var/www/deck-server:ro
- ./ssl/:/ssl/:ro
ports:
- "80:80"
- "443:443"
volumes:
cds_db:
cds_static:
networks:
cardsity: