-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.staging.yml
51 lines (45 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
version: '3'
services:
nginx:
container_name: nginx
image: nginxproxy/nginx-proxy
restart: unless-stopped
ports:
- 80:80
- 443:443
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- /var/docker/nginx/html:/usr/share/nginx/html
- /var/docker/nginx/certs:/etc/nginx/certs
- /var/docker/nginx/vhost:/etc/nginx/vhost.d
logging:
options:
max-size: "10m"
max-file: "3"
letsencrypt-companion:
container_name: letsencrypt-companion
image: jrcs/letsencrypt-nginx-proxy-companion
restart: unless-stopped
volumes:
- /var/docker/nginx/html:/usr/share/nginx/html
- /var/docker/nginx/certs:/etc/nginx/certs
- /var/docker/nginx/vhost:/etc/nginx/vhost.d
- /var/run/docker.sock:/var/run/docker.sock
- /var/docker/nginx/acme:/etc/acme.sh
environment:
NGINX_PROXY_CONTAINER: 'nginx'
web:
environment:
VIRTUAL_HOST: staging.testing.govstack.global
LETSENCRYPT_HOST: staging.testing.govstack.global
API_URL: api.staging.testing.govstack.global
backend:
volumes:
- /var/docker/uploads:/app/uploads
environment:
API_KEY_BB: ${API_KEY_BB:-O7VKGLW47I6e}
VIRTUAL_HOST: api.staging.testing.govstack.global
LETSENCRYPT_HOST: api.staging.testing.govstack.global
mongo:
ports:
- 27017:27017