-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
53 lines (49 loc) · 1.2 KB
/
docker-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
41
42
43
44
45
46
47
48
49
50
51
52
53
version: '3.7'
services:
db:
image: postgres:11.6
ports:
- 5432:5432
environment:
- POSTGRES_USER=flower
- POSTGRES_DB=flower
- TZ=Asia/Tokyo
tty: true
restart: always
user: postgres
volumes:
- ./assets/schema:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD-SHELL", "pg_isready -U flower"]
interval: 3s
timeout: 3s
retries: 5
start_period: 3s
register:
image: register:latest
ports:
- 8000:8000
container_name: register
depends_on:
- db
build:
context: .
args:
- APP_NAME=register
command: ["/usr/local/bin/dockerize", "-wait", "tcp://db:5432", "-timeout", "60s", "./register", "-dbuser", "flower", "-dbhost", "db", "-dbpass", "flower", "-webhost", "0.0.0.0", "-webport", "8000"]
watcher:
image: watcher:latest
container_name: watcher
depends_on:
- db
environment:
- DB_USER=flower
- DB_PASS=flower
- DB_HOST=db
- DB_PORT=5432
- DB_NAME=flower
build:
context: .
args:
- APP_NAME=watcher
command: ["/usr/local/bin/dockerize", "-wait", "tcp://db:5432", "-timeout", "60s", "./watcher"]