-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.staging.yml
63 lines (56 loc) · 1.35 KB
/
docker-compose.staging.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
version: '3.8'
services:
web:
image: # STAGING IMAGE NAME
restart: unless-stopped
ports:
- 8000:8000
command: sh -c ./scripts/entrypoint.prod.sh
volumes:
- static:/vol/web
env_file:
- ./.env
nginx:
build: ./nginx
restart: unless-stopped
ports:
- 80:80
- 443:443
volumes:
- static:/vol/web
- ./nginx/certbot/www:/var/www/certbot/:ro
- ./nginx/certbot/conf:/etc/nginx/ssl/:ro
environment:
- APP_DOMAIN=${APP_DOMAIN}
- PMA_DOMAIN=${PMA_DOMAIN}
labels:
- "com.centurylinklabs.watchtower.enable=false"
depends_on:
- web
certbot:
image: certbot/certbot:latest
volumes:
- ./nginx/certbot/www:/var/www/certbot/:rw
- ./nginx/certbot/conf:/etc/letsencrypt/:rw
- ./nginx/certbot/log:/var/log/:rw
labels:
- "com.centurylinklabs.watchtower.enable=false"
phpmyadmin:
image: phpmyadmin
restart: unless-stopped
ports:
- 8001:80
environment:
- PMA_HOST=${DB_HOST}
- UPLOAD_LIMIT=${PMA_UPLOAD_LIMIT}
- MEMORY_LIMIT=${PMA_MEMORY_LIMIT}
labels:
- "com.centurylinklabs.watchtower.enable=false"
watchtower:
image: containrrr/watchtower
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --interval 30
volumes:
static: null