-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
65 lines (64 loc) · 1.67 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
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
environment:
depends_on:
- nginx-proxy
frontend:
image: ghcr.io/uoft-utsc-cs-sandbox/frontend-av
container_name: frontend
restart: always
expose:
- 80
environment:
- VIRTUAL_HOST=audiovisualizer.live
- LETSENCRYPT_HOST=audiovisualizer.live
backend:
image: ghcr.io/uoft-utsc-cs-sandbox/backend-av
container_name: backend
restart: always
expose:
- 3000
environment:
- VIRTUAL_HOST=api.audiovisualizer.live
- LETSENCRYPT_HOST=api.audiovisualizer.live
- POSTGRES_DB_USER=postgres
- POSTGRES_DB_PASSWORD=<password>
- POSTGRES_DB_NAME=postgres
- POSTGRES_DB_HOST=postgres
- POSTGRES_DB_PORT=5432
- SESSION_SECRET=<secret>
depends_on:
- postgres
postgres:
image: postgres
container_name: postgres
restart: always
environment:
- POSTGRES_PASSWORD=<password>
- POSTGRES_USER=postgres
- POSTGRES_DB=postgres
volumes:
- ./postgres:/var/lib/postgresql/data
ports:
- 5432:5432