-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (45 loc) · 1010 Bytes
/
docker-compose.yml
File metadata and controls
49 lines (45 loc) · 1010 Bytes
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
services:
server:
build:
context: .
dockerfile: Dockerfile
ports:
- 8080:80
depends_on:
- db
- migrations
environment:
- HOST=db
- DB_PORT=5432
- DB=panther
- ENLIST=true
- DB_USERNAME=postgres
- DB_PASSWORD=admin
- ASPNETCORE_ENVIRONMENT=Development
db:
image: postgres:14.4
ports:
- 5433:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=admin
- POSTGRES_DB=panther
volumes:
- data:/var/lib/postgresql/data
migrations:
image: flyway/flyway:9.9.0
command: -url=jdbc:postgresql://db/panther -locations=filesystem:/dbscripts -schemas=public -user=postgres -password=admin -connectRetries=60 migrate
volumes:
- .:/dbscripts
depends_on:
- db
test:
build:
context: .
dockerfile: Dockerfile.test
adminer:
image: adminer
ports:
- "8081:8080"
volumes:
data: {}