-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
62 lines (58 loc) · 1.5 KB
/
docker-compose.dev.yml
File metadata and controls
62 lines (58 loc) · 1.5 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
55
56
57
58
59
60
61
62
services:
nginx:
image: nginx:latest
container_name: nginx
restart: unless-stopped
environment:
TZ: Asia/Seoul
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
depends_on:
- certbot
networks:
- didim
certbot:
image: certbot/certbot
container_name: certbot
restart: unless-stopped
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
entrypoint: >
/bin/sh -c 'trap exit TERM; while :; do certbot renew --deploy-hook "nginx -s reload"; sleep 12h & wait $${!}; done;'
networks:
- didim
spring:
image: rt3310/letsrecordit:latest
container_name: spring
restart: on-failure:3
environment:
SPRING_PROFILES_ACTIVE: dev
TZ: Asia/Seoul
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_KEY}
AWS_REGION: ${AWS_REGION}
networks:
- didim
volumes:
- ./:/app/local
- /var/log/${APP_NAME}:/var/log/${APP_NAME}
- ./auth:/auth
promtail:
image: grafana/promtail:latest
container_name: promtail
volumes:
- ./promtail-config.dev.yml:/etc/promtail/config.yml
- /var/log/${APP_NAME}:/var/log/app
- /var/lib/promtail:/var/lib/promtail
command: -config.file=/etc/promtail/config.yml
networks:
- didim
networks:
didim:
driver: bridge