-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
62 lines (62 loc) · 1.61 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
# 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
flyway:
build:
context: database/sql/
dockerfile: Dockerfile
command: >
-locations=filesystem:/flyway/sql
-connectRetries=60
-user=lobby_user
-password=lobby_user
-url=jdbc:postgresql://database:5432/lobby_db
migrate
volumes:
- ${PWD}/.docker-compose/docker-flyway.config:/flyway/conf/flyway.config
depends_on:
- database
lobby:
build:
# context: spitfire-server/dropwizard-server/
dockerfile: Dockerfile
environment:
- DATABASE_USER=lobby_user
- DATABASE_PASSWORD=lobby_user
- DB_URL=database:5432/lobby_db
ports:
- "${LOBBY_PORT}:8080"
depends_on:
flyway:
condition: service_completed_successfully
#
# 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