-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
83 lines (76 loc) · 1.6 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
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.7"
networks:
net:
mail:
services:
mail:
image: juanluisbaptiste/postfix:1.2.0
restart: always
expose:
- 25
env_file:
- .env.smtp
networks:
- mail
nginx:
image: nginx:latest
restart: unless-stopped
volumes:
- ./config/diggy.dev.conf:/etc/nginx/conf.d/diggy.conf
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
- /var/run/nginx-cache/jscache:/var/run/nginx-cache/jscache
ports:
- 80:80
- 443:443
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
depends_on:
- web
- sandbox
networks:
- net
certbot:
image: certbot/certbot
restart: unless-stopped
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
networks:
- net
web:
build:
context: .
dockerfile: Dockerfile.repl
expose:
- 5000
- 3000
env_file:
- .env
volumes:
- ./userland:/userland
networks:
- net
- mail
sandbox:
privileged: true
expose:
- 8060
init: true
ipc: none
tty: true
working_dir: $PWD/diggy-sandbox
env_file:
- .env
environment:
PYTHONDONTWRITEBYTECODE: 1
build:
context: .
dockerfile: Dockerfile.sandbox
volumes:
- ./userland:/userland
- ./userland_tpl:/userland_tpl
networks:
- net
volumes:
user-base: