-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
83 lines (78 loc) · 1.51 KB
/
docker-compose.yaml
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
version: '3.8'
services:
mus:
build:
context: .
dockerfile: Dockerfile.dockerfile
command: gunicorn mus.wsgi:application --bind 0.0.0.0:8000
volumes:
- static_volume:/var/www/mus/static
expose:
- 8000
env_file:
- ./secrets.env
restart: always
depends_on:
- db
- redis
- mongo
db:
image: postgres
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- ./secrets.env.db
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin
depends_on:
- db
ports:
- '5051:80'
env_file:
- ./secrets.env.man
restart: always
redis:
image: redis:latest
restart: always
ports:
- "6379:6379"
volumes:
- redis_data:/root/redis
- /docker/appdata/redis/redis.conf:/usr/local/etc/redis/redis.conf
env_file:
- ./secrets.env.db
mongo:
image: mongo
restart: always
ports:
- '27017:27017'
env_file:
- ./secrets.env.db
mongo-express:
image: mongo-express
restart: always
ports:
- '8050:8081'
env_file:
- ./secrets.env.man
volumes:
- mongo_express_data:/data/db
caddy:
build:
context: .
dockerfile: Dockerfile_caddy.dockerfile
volumes:
- static_volume:/var/www/mus/static
ports:
- '80:80'
- '443:443'
depends_on:
- mus
volumes:
postgres_data:
static_volume:
redis_data:
mongo_express_data: