-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.deploy.yml
69 lines (62 loc) · 1.19 KB
/
docker-compose.deploy.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
version: "3"
services:
app:
container_name: multisite-web
build: .
command: python main.py
restart: unless-stopped
volumes:
- "./:/home/sites:rw"
- "storage:/home/storage:rw"
env_file:
- .env
networks:
- web
mongo:
image: mongo:${MONGO_IMAGE_TAG}
hostname: ${MONGO_HOSTNAME}
container_name: multisite-mongo
restart: unless-stopped
env_file:
- .env
volumes:
- "mongodata:/data/db"
networks:
- web
mongo-express:
image: mongo-express:${MONGO_EXPRESS_IMAGE_TAG}
hostname: mongo-express
container_name: multisite-mongo-express
restart: unless-stopped
env_file:
- .env
networks:
- web
depends_on:
- mongo
proxy:
container_name: multisite-proxy
image: caddy:2-alpine
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./public:/srv
- $PWD/Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
env_file:
- .env
networks:
- web
depends_on:
- app
networks:
web:
driver: bridge
volumes:
storage:
mongodata:
caddy_data:
caddy_config: