-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yaml
52 lines (50 loc) · 1.59 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
version: "3.8"
services:
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__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