-
Notifications
You must be signed in to change notification settings - Fork 379
/
docker-compose.yml
69 lines (65 loc) · 1.56 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
# This docker-compose file depends on './gradlew shadowJar'
#
# Launches all of the background servers used by TripleA.
# The main entrypoint to those services is NGINX which
# is listening on localhost:80
#
version: '3'
services:
database:
image: postgres:10
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
volumes:
- ./.docker-compose/database/01-init.sql:/docker-entrypoint-initdb.d/01-init.sql
ports:
- "5432:5432"
healthcheck:
test: echo 'select 1' | psql -h localhost -U postgres | grep -q '1 row'
interval: 3s
retries: 10
timeout: 3s
lobby:
build:
context: spitfire-server/dropwizard-server/
dockerfile: Dockerfile
environment:
- DATABASE_USER=lobby_user
- DATABASE_PASSWORD=lobby
- DB_URL=database:5432/lobby_db
ports:
- "8080"
depends_on:
- database
game-support-server:
build:
context: servers/game-support/server/
dockerfile: Dockerfile
environment:
- DB_URL=database:5432/lobby_db
ports:
- "8080"
depends_on:
- database
maps-server:
build:
context: servers/maps/server/
dockerfile: Dockerfile
environment:
- DB_URL=database:5432/lobby_db
ports:
- "8080"
depends_on:
- database
nginx:
image: nginx:stable-alpine-perl
volumes:
- ./.docker-compose/nginx/default.conf:/etc/nginx/conf.d/default.conf
ports:
- "80:80"
links:
- game-support-server
- maps-server
- lobby