-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.dev.yml
executable file
·109 lines (102 loc) · 2.16 KB
/
docker-compose.dev.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# Docker compose file for development
version: "3"
services:
postgres:
image: postgres:13
container_name: postgres
hostname: postgres
environment:
- POSTGRES_USER=john
- POSTGRES_PASSWORD=pwd0123456789
- POSTGRES_DB=moni
network_mode: host
volumes:
- ./volumes/postgres:/var/lib/postgresql/data
logging:
driver: "json-file"
options:
max-size: "500k"
max-file: "5"
adminer:
image: adminer
container_name: adminer
hostname: adminer
network_mode: host
healthcheck:
test: "curl -f localhost:8080 || false"
interval: 30s
timeout: 3s
retries: 10
start_period: 30s
logging:
driver: "json-file"
options:
max-size: "500k"
max-file: "5"
gotify:
image: gotify/server
container_name: gotify
hostname: gotify
network_mode: host
environment:
- GOTIFY_DEFAULTUSER_PASS=password
volumes:
- "./volumes/gotify:/app/data"
httpbin:
image: kennethreitz/httpbin
container_name: httpbin
hostname: httpbin
network_mode: host
api:
build:
context: .
dockerfile: Dockerfile.dev.api
command: >
bash -c "python manage.py runserver 0.0.0.0:5000"
working_dir: /app
container_name: api
hostname: api
user: ${HOST_UID}:${HOST_GID}
env_file:
- .env
network_mode: host
volumes:
- ./backend:/app
healthcheck:
test: "curl -f localhost:5000/__health || false"
interval: 30s
timeout: 3s
retries: 10
start_period: 5s
depends_on:
postgres:
condition: service_started
ui:
build:
context: .
dockerfile: Dockerfile.dev.ui
command: >
bash -c "npm run dev"
working_dir: /app
container_name: ui
hostname: ui
user: ${HOST_UID}:${HOST_GID}
env_file:
- .env
volumes:
- ./frontend:/app
network_mode: host
depends_on:
api:
condition: service_healthy
moni:
build: .
container_name: moni
hostname: moni
env_file:
- .env
ports:
- 127.0.0.1:5000:8000
depends_on:
- postgres
- gotify