-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
44 lines (39 loc) · 942 Bytes
/
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
version: '3.8'
services:
postgres:
image: postgres:12-alpine
environment:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_DB: treasury
ports:
- "5432"
volumes:
- pgdata:/var/lib/postgresql/data
app:
build:
context: .
dockerfile: Dockerfile
command: make start-app
container_name: paymaster
restart: unless-stopped
env_file:
- .env
volumes:
- "./paymaster/:/usr/src/app/paymaster"
ports:
- "5000:5000"
depends_on:
- postgres
background:
build:
context: .
dockerfile: Dockerfile
command: make run-background
container_name: background
restart: unless-stopped
env_file:
- .env
depends_on:
- postgres
volumes:
pgdata: