-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
64 lines (59 loc) · 1.4 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
services:
nginx:
build: ./nginx
ports:
- "80:80"
- "443:443"
healthcheck:
test: [ "CMD", "curl", "-k", "nginx:80" ]
interval: 30s
timeout: 30s
start_period: 30s
retries: 10
restart: unless-stopped
stop_grace_period: 1s
networks:
- backend
volumes:
- ./certbot/certs/:/etc/nginx/ssl/:rw
- ./nginx/autoreload.sh:/docker-entrypoint.d/autoreload.sh
environment:
- DOMAIN=${DOMAIN}
- NGINX_ENVSUBST_OUTPUT_DIR=/etc/nginx
depends_on:
certbot:
condition: service_completed_successfully
linux_tweet_app:
condition: service_started
linux_tweet_app:
build: "./gitclone/apps/linux_tweet_app"
healthcheck:
test: [ "CMD", "curl", "linux_tweet_app:80" ]
interval: 30s
timeout: 30s
start_period: 30s
retries: 10
restart: unless-stopped
networks:
- backend
certbot_renew:
build: ./certbot-renew
restart: unless-stopped
stop_grace_period: 1s
volumes:
- ./certbot/certs/:/etc/letsencrypt/:rw
- ./certbot-renew/renewloop.sh:/renewloop.sh
certbot:
build: ./certbot
stop_grace_period: 0s
volumes:
- ./certbot/certs/:/etc/letsencrypt/:rw
- ./certbot/init.sh:/init.sh
environment:
- DOMAIN=${DOMAIN}
- EMAIL=${EMAIL}
ports:
- "80:80"
networks:
backend:
driver: bridge