-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
58 lines (56 loc) · 1.28 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
version: "3.9"
services:
expressapp:
container_name: expressapp
build: ./backend
expose:
- 8000
volumes:
- ./backend:/usr/src/app
reactapp:
container_name: reactapp
build: ./frontend
expose:
- 5000
volumes:
- ./frontend:/usr/src/app
nginx:
build: ./nginx
expose:
- 80
links:
- expressapp
- reactapp
- nginx-proxy
- letsencrypt
environment:
- VIRTUAL_HOST=rugamas.xyz,www.rugamas.xyz
- LETSENCRYPT_HOST=rugamas.xyz,www.rugamas.xyz
restart: always
nginx-proxy:
image: jwilder/nginx-proxy
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- certs:/etc/nginx/certs:ro
- vhostd:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
labels:
- com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy
letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
restart: always
environment:
- NGINX_PROXY_CONTAINER=nginx-proxy
volumes:
- certs:/etc/nginx/certs:rw
- /var/run/docker.sock:/var/run/docker.sock:ro
- vhostd:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
volumes:
certs:
html:
vhostd: