-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yaml
82 lines (78 loc) · 3.18 KB
/
docker-compose.yaml
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
76
77
78
79
80
81
82
services:
azure-storage:
image: mcr.microsoft.com/azure-storage/azurite
ports:
- "10000:10000"
- "10001:10001"
- "10002:10002"
healthcheck:
test: nc 127.0.0.1 10000 -z
interval: 1s
retries: 30
database:
image: "postgres:15"
environment:
- POSTGRES_USER=worms
- POSTGRES_PASSWORD=worms
- POSTGRES_DB=worms
ports:
- "5432:5432"
healthcheck:
test: "pg_isready -U worms"
interval: 5s
timeout: 5s
retries: 5
flyway-init:
image: redgate/flyway:10
volumes:
- ./src/database:/project
command:
- "info"
- "migrate"
- "info"
- "-workingDirectory=/project"
- "-locations=filesystem:/project/migrations,filesystem:/project/local-dev"
environment:
- FLYWAY_URL=jdbc:postgresql://database:5432/worms
- FLYWAY_USER=worms
- FLYWAY_PASSWORD=worms
- FLYWAY_SCHEMAS=public
depends_on:
database:
condition: service_healthy
worms-gateway:
build:
dockerfile: build/docker/gateway/Dockerfile
context: .
ports:
- "5005:8080"
volumes:
- ./sample-data:/data
environment:
- ASPNETCORE_ENVIRONMENT=Development
- WORMS_CONNECTIONSTRINGS__STORAGE=DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://host.docker.internal:10000/devstoreaccount1;QueueEndpoint=http://host.docker.internal:10001/devstoreaccount1;
- WORMS_CONNECTIONSTRINGS__DATABASE=Server=database;Port=5432;Database=worms;Username=worms;Password=worms
- WORMS_STORAGE__TEMPREPLAYFOLDER=/data/replays
- WORMS_STORAGE__CLIFOLDER=/data/cli
- WORMS_STORAGE__SCHEMESFOLDER=/data/schemes
depends_on:
flyway-init:
condition: service_completed_successfully
azure-storage:
condition: service_healthy
worms-replay-processor:
build:
dockerfile: build/docker/replay-processor/Dockerfile
context: .
volumes:
- ./sample-data:/data
- /home/eadie/games/worms:/root/.wine/drive_c/WA
environment:
- WORMS_CONNECTIONSTRINGS__STORAGE=DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://host.docker.internal:10000/devstoreaccount1;QueueEndpoint=http://host.docker.internal:10001/devstoreaccount1;
- WORMS_CONNECTIONSTRINGS__DATABASE=Server=database;Port=5432;Database=worms;Username=worms;Password=worms
- WORMS_STORAGE__TEMPREPLAYFOLDER=/data/replays
depends_on:
flyway-init:
condition: service_completed_successfully
azure-storage:
condition: service_healthy