-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
67 lines (65 loc) · 1.63 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
version: "3.7"
services:
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./certs:/etc/nginx/certs
- ./vhost:/etc/nginx/vhost.d
- ./html:/usr/share/nginx/html
nginx-proxy-acme:
image: nginxproxy/acme-companion
container_name: nginx-proxy-acme
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./certs:/etc/nginx/certs
- ./vhost:/etc/nginx/vhost.d
- ./html:/usr/share/nginx/html
- ./acme:/etc/acme.sh
volumes_from:
- nginx-proxy
depends_on:
- nginx-proxy
environment:
frontend:
image: ghcr.io/uoft-utsc-cs-sandbox/frontend-webtama
container_name: frontend
restart: always
expose:
- 80
environment:
- VIRTUAL_HOST=webtama.works
- LETSENCRYPT_HOST=webtama.works
depends_on:
- backend
links:
- backend
backend:
image: ghcr.io/uoft-utsc-cs-sandbox/backend-webtama
container_name: backend
restart: always
expose:
- 3000
environment:
- VIRTUAL_HOST=api.webtama.works
- LETSENCRYPT_HOST=api.webtama.works
depends_on:
- sqlite3
sqlite3:
container_name: sqlite3_container
image: nouchka/sqlite3:latest
stdin_open: true
tty: true
volumes:
#Modify following line
- /db/:/root/db/
ports:
- '9000:9000' # expose ports - HOST:CONTAINER
restart: unless-stopped