-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
73 lines (55 loc) · 1.33 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
65
66
67
68
69
70
version: "3.8"
services:
web:
build:
context: .
# target: runner
dockerfile: Dockerfile
args:
DOCKERFILE_ELASTIC_URL: ${NEXT_ELASTIC_URL}
container_name: web
restart: always
volumes:
- ./:/app
# - node_modules:/app/node_modules
# environment:
# BASE_URL: ${BASE_URL} # http://localhost:3000
# NEXT_ELASTIC_URL: ${NEXT_ELASTIC_URL} # http://localhost:9200
ports:
- "3000:3000"
networks:
- secure_network
# - els
#####################
### Nginx Proxy
#####################
proxy:
restart: unless-stopped
image: nginx
ports:
- 80:80
- 443:443
# - 443:443
depends_on:
- web
volumes:
- ./nginx/conf/:/etc/nginx/conf.d/:rw
- ./certbot/www:/var/www/certbot/:ro
- ./certbot/conf/:/etc/nginx/ssl/:ro
networks:
- secure_network
# - els
# certbot:
# image: certbot/certbot
# container_name: certbot
# volumes:
# - ./certbot/conf:/etc/letsencrypt:rw
# - ./certbot/www:/var/www/certbot:rw
# command: certonly --webroot -w /var/www/certbot --force-renewal --email [email protected] -d datavault.swamped.com --agree-tos
networks:
secure_network:
driver: bridge
# els:
# external: true
# volumes:
# node_modules: