-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocker-compose.yml
56 lines (51 loc) · 1.08 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'
services:
doodle:
image: keakon/doodle
command: python -m doodle.main
environment:
- DOODLE_ENV=PRODUCTION
container_name: doodle
networks:
- doodle
depends_on:
- redis_main
- redis_cache
# 可将自己的配置放到 ./config/production.py,然后取消下面注释
# volumes:
# - ./config/production.py:/root/Doodle/doodle/config/production.py:ro
restart: unless-stopped
redis_main:
image: redis
command: redis-server
networks:
- doodle
volumes:
- ./data/redis_main:/data
restart: unless-stopped
redis_cache:
image: redis
command: redis-server
networks:
- doodle
volumes:
- ./data/redis_cache:/data
restart: unless-stopped
caddy:
image: caddy
networks:
- doodle
depends_on:
- doodle
pid: container:doodle
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- ./conf/Caddyfile:/etc/caddy/Caddyfile
- ./data:/data
restart: unless-stopped
networks:
doodle:
driver: bridge