This repository was archived by the owner on Jan 26, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (52 loc) · 1.34 KB
/
docker-compose.yml
File metadata and controls
53 lines (52 loc) · 1.34 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
version: '3.9'
services:
web:
container_name: nginx_omeglit
image: "nginx:stable"
security_opt:
- no-new-privileges
volumes:
- ./public:/usr/share/nginx/html:ro
- ~/omeglit_${TARGET}/secrets:/etc/letsencrypt/:ro
- ./docker/${TARGET}/default.conf:/etc/nginx/conf.d/default.conf:ro
# - ~/omeglit_${TARGET}/certbot/www:/var/www/certbot/:ro
ports:
- "80:80"
- "443:443"
# environment:
# - NGINX_HOST=${DOMAIN}
# - NGINX_PORT=80
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
nodejs:
container_name: nodejs_omeglit
image: "node:18-alpine"
security_opt:
- no-new-privileges
volumes:
- ~/omeglit_${TARGET}/secrets:/etc/letsencrypt/:ro
ports:
- "${WS_PORT}:8080"
build:
context: .
dockerfile: ./docker/Dockerfile
target: ${TARGET}
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
certbot_cf:
container_name: certbot_omeglit
image: "certbot/dns-cloudflare"
security_opt:
- no-new-privileges
volumes:
- ~/omeglit_${TARGET}/secrets:/etc/letsencrypt/
# - ~/omeglit_${TARGET}/certbot/www/:/var/www/certbot/:rw
- ./cloudflare.ini:/root/cloudflare.ini:ro