-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (50 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
53
54
55
56
version: '3.8'
services:
back:
build:
context: .
dockerfile: Dockerfile
image: mmahmadi0101/ideablog
working_dir: /usr/src/ideablog
ports:
- 8005:8005
networks:
- ideablog_network
env_file:
- .env.dev
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "5"
depends_on:
- haproxy
db:
image: postgres:15
command: ["postgres", "-c", "log_statement=all"]
ports:
- 5433:5432
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=pguser_django
- POSTGRES_PASSWORD=pgpassword_django
- POSTGRES_DB=pgdb_dajngo
networks:
- ideablog_network
haproxy:
image: haproxy:2.4
volumes:
- ./haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
ports:
- 5432:5432
networks:
- ideablog_network
depends_on:
- db
volumes:
postgres_data:
networks:
ideablog_network:
driver: bridge