-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (52 loc) · 1.2 KB
/
docker-compose.yml
File metadata and controls
54 lines (52 loc) · 1.2 KB
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
version: "3.8"
services:
spring:
build: back
container_name: spring
restart: always
expose:
- "8081"
volumes:
- ./data:/app/data
networks:
- my_network
core:
build: core
container_name: core
restart: always
volumes:
- "./data:/app/data"
expose:
- "8082"
networks:
- my_network
mem_limit: "14G"
nginx:
build: front
container_name: nginx
restart: unless-stopped
volumes:
- ./front/deploy/nginx:/etc/nginx/conf.d
- ./front/deploy/certbot/conf:/etc/letsencrypt
- ./front/deploy/certbot/www:/var/www/certbot
ports:
- "80:80"
- "443:443"
depends_on:
- core
networks:
- my_network
command: '/bin/sh -c ''while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g "daemon off;"'''
certbot:
image: certbot/certbot
container_name: certbot
restart: unless-stopped
volumes:
- ./deploy/certbot/conf:/etc/letsencrypt
- ./deploy/certbot/www:/var/www/certbot
networks:
- my_network
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
networks:
my_network:
driver: bridge