This repository has been archived by the owner on May 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
75 lines (69 loc) · 1.6 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
75
---
version: '3.5'
networks:
game:
name: kalaxia_game
driver: bridge
services:
front:
container_name: kalaxia_front
image: kalaxia/front
env_file:
- kalaxia.env
networks:
- game
volumes:
- "./volumes/app:/srv/app"
api:
container_name: kalaxia_api
build: .
image: kalaxia/api
depends_on:
- postgresql
env_file:
- kalaxia.env
networks:
- game
volumes:
- ".:/go/src/kalaxia-game-api"
nginx:
container_name: kalaxia_nginx
build: build/docker/nginx
image: kalaxia/nginx
networks:
- game
depends_on:
- front
- api
env_file:
- kalaxia.env
volumes:
# nginx
- "./volumes/ssl:/etc/ssl"
- "./volumes/logs/nginx:/var/log/nginx"
ports:
- "${NGINX_HTTPS_PORT}:443"
- "${NGINX_PORT}:80"
postgresql:
container_name: kalaxia_postgresql
image: postgres:9.6
env_file:
- kalaxia.env
networks:
- game
volumes:
- "./volumes/data:/var/lib/postgresql/data"
# for windows hosts :
# - "postgres-data:/var/lib/postgresql/data"
ports:
- "5432"
redis:
container_name: kalaxia_redis
image: redis:buster
env_file:
- kalaxia.env
networks:
- game
# for windows hosts :
#volumes:
# postgres-data: