-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
65 lines (61 loc) · 1.42 KB
/
docker-compose.dev.yml
File metadata and controls
65 lines (61 loc) · 1.42 KB
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
volumes:
postgres_data:
driver: local
driver_opts:
type: none
o: bind
device: ./opentaberna-postgres
redis_data:
driver: local
services:
opentaberna-api:
build:
context: .
dockerfile: src/Dockerfile
image: opentaberna-api:latest
command: uvicorn app.main:app --host 0.0.0.0 --port 8001
env_file: .env
ports:
- "8001:8001"
networks:
frontproxy_fnet:
ipv4_address: 172.20.20.21
backend:
restart: unless-stopped
container_name: opentaberna-api
depends_on:
- opentaberna-db
- opentaberna-redis
opentaberna-db:
image: postgres:17-alpine
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-opentaberna_password}
POSTGRES_DB: ${POSTGRES_DB:-opentaberna}
POSTGRES_USER: ${POSTGRES_USER:-opentaberna}
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- backend
restart: unless-stopped
container_name: opentaberna-db
expose:
- "5432"
opentaberna-redis:
image: redis:8-alpine
command: redis-server --appendonly yes
volumes:
- redis_data:/data
networks:
- backend
restart: unless-stopped
container_name: opentaberna-redis
expose:
- "6379"
networks:
frontproxy_fnet:
external: true
backend:
name: opentaberna-api_backend
driver: bridge
driver_opts:
com.docker.network.enable_ipv6: "false"