-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
40 lines (36 loc) · 857 Bytes
/
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
services:
app:
image: app
build:
context: .
dockerfile: ./Dockerfile
ports:
- 8081:8080
environment:
ASPNETCORE_ENVIRONMENT: Production
POSTGRES_URL: "Host=db:5432; Database=GRIDBATTLE_DB; Username=admin; Password=supersecret"
importer:
image: importer
restart: "no"
build:
context: .
dockerfile: ./server/GridBattle.Data.Importer/Dockerfile
environment:
POSTGRES_URL: "Host=db:5432; Database=GRIDBATTLE_DB; Username=admin; Password=supersecret"
db:
image: postgres
restart: unless-stopped
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: supersecret
ports:
- 5432:5432
volumes:
- pgdata:/var/lib/postgresql/data
adminer:
image: adminer
restart: unless-stopped
ports:
- 8080:8080
volumes:
pgdata: