-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
114 lines (108 loc) · 2.15 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
114 lines (108 loc) · 2.15 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
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
110
111
112
113
114
services:
db:
image: postgres:17
container_name: bbpanel-db
restart: always
ports:
- "5432"
volumes:
- postgres_data:/var/lib/postgresql/data
env_file:
- .env
networks:
- internal
backend:
build:
context: .
dockerfile: Dockerfile.django
tags:
- bbpanel-backend:latest
container_name: bbpanel-backend
dns:
- 8.8.8.8
- 1.1.1.1
ports:
- "8000"
volumes:
- static_files:/app/django_app/staticfiles
- media_files:/app/media
env_file:
- .env
depends_on:
- db
networks:
- internal
nginx-reverse_proxy:
image: nginx:latest
container_name: bbpanel-reverse_proxy
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- static_files:/static:ro
- media_files:/app/media
- /etc/ssl/certs-bbpanel:/etc/ssl/certs-bbpanel
- ./separated_statics:/separated_statics:ro
depends_on:
- backend
networks:
- internal
watch-mongo:
image: mongo:latest
container_name: watch-mongo
ports:
- "27017"
volumes:
- watchtower_data:/data/db
- watchtower_config:/data/configdb
networks:
- internal
env_file:
- .env
bbpanel-tasks-redis:
image: redis:latest
container_name: bbpanel-redis
restart: always
ports:
- "6379"
volumes:
- redis_data:/data
networks:
- internal
env_file:
- .env
bbpanel-celery:
build:
context: .
dockerfile: Dockerfile.celery
command: worker
container_name: bbpanel-celery
volumes:
- static_files:/app/static
- media_files:/app/media
env_file:
- .env
depends_on:
- backend
- bbpanel-tasks-redis
networks:
- internal
volumes:
postgres_data:
static_files:
media_files:
watchtower_data:
name: watchtower_data
driver: local
watchtower_config:
name: watchtower_config
driver: local
redis_data:
name: bbpanel_redis_data
driver: local
networks:
internal:
driver: bridge
driver_opts:
com.docker.network.bridge.name: bbpanel-net