-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (48 loc) · 1.02 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
version: "3.9"
services:
slave-db:
container_name: slave-db
restart: unless-stopped
image: postgres:15.2-bullseye
env_file: dev-env
volumes:
- pg-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5m
timeout: 30s
retries: 3
start_period: 1m
networks:
- slave-network
slave-api:
container_name: slave-api
restart: unless-stopped
pull_policy: never
env_file: dev-env
command: ["sh", "scripts/start-dev.sh"]
image: ${RELEASE_IMAGE:-slave-api}
build:
context: .
dockerfile: Dockerfile
ports:
- 8000:8000
networks:
- slave-network
- sige-network
volumes:
- .:/sige-slave
- pip_cache:/usr/local/lib/python/site-packages
depends_on:
- slave-db
volumes:
pg-data:
name: slave-pgdata
pip_cache:
name: slave-pip-cache
networks:
slave-network:
name: slave-network
sige-network:
driver: bridge
name: sige-network