generated from xendarboh/remix-stack-minimal-humanode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
79 lines (74 loc) · 2.1 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
71
72
73
74
75
76
77
78
79
version: "3"
services:
# extend-only base for collectives
collectives-base:
profiles: ["no-op"]
image: ${REPO}/collectives:${TAG}
network_mode: bridge
restart: always
build:
context: ./
ports:
- "3000:3000"
collectives:
profiles: ["production"]
extends:
service: collectives-base
container_name: ${HOSTNAME}
hostname: ${HOSTNAME}
volumes:
- ${HOST_DIR}/${HOSTNAME}:/app/srv
environment:
- NODE_ENV=production
- VIRTUAL_HOST=${HOSTNAME}
- LETSENCRYPT_HOST=${HOSTNAME}
collectives-dev:
profiles: ["development"]
extends:
service: collectives-base
container_name: collectives
hostname: localhost
volumes:
- ./:/app
environment:
- NODE_ENV=development
- npm_config_cache=/tmp/npm_cache
command: >
npm run dev
nginx-proxy:
profiles: ["proxy"]
container_name: nginx-proxy
image: nginxproxy/nginx-proxy:alpine
init: true
restart: unless-stopped
network_mode: bridge
ports:
- "80:80"
- "443:443"
volumes:
- ${HOST_DIR}/nginx/certs:/etc/nginx/certs:ro
- ${HOST_DIR}/nginx/dhparam:/etc/nginx/dhparam
- ${HOST_DIR}/nginx/html:/usr/share/nginx/html
- ${HOST_DIR}/nginx/vhost.d:/etc/nginx/vhost.d
- /var/run/docker.sock:/tmp/docker.sock:ro
# - ./conf.d/my_proxy.conf:/etc/nginx/conf.d/my_proxy.conf:ro
environment:
- ENABLE_IPV6=true
- RESOLVERS=1.1.1.1
nginx-proxy-acme:
profiles: ["proxy"]
container_name: nginx-proxy-acme
image: nginxproxy/acme-companion
restart: unless-stopped
network_mode: bridge
volumes:
- ${HOST_DIR}/nginx/acme.sh:/etc/acme.sh:rw
- ${HOST_DIR}/nginx/certs:/etc/nginx/certs:rw
- ${HOST_DIR}/nginx/dhparam:/etc/nginx/dhparam
- ${HOST_DIR}/nginx/html:/usr/share/nginx/html
- ${HOST_DIR}/nginx/vhost.d:/etc/nginx/vhost.d
- /var/run/docker.sock:/var/run/docker.sock:ro
# - ./conf.d/my_proxy.conf:/etc/nginx/conf.d/my_proxy.conf:ro
environment:
- DEFAULT_EMAIL
- NGINX_PROXY_CONTAINER=nginx-proxy