-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (53 loc) · 1.5 KB
/
docker-compose.yml
File metadata and controls
59 lines (53 loc) · 1.5 KB
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
version: "3.9"
volumes:
production_postgres_data: {}
production_postgres_data_backups: {}
media_volume: {}
services:
django: &django
image: ghcr.io/whoigit/avast-skillsmatcher-api:stable
container_name: django
depends_on:
- postgres
- redis
volumes:
- media_volume:/app/media # <-- bind the media files
env_file:
- ./.envs/.production/.django
- ./.envs/.production/.postgres
restart: unless-stopped
command: /start
network_mode: "host" # <-- to send email from container with local smtp
postgres:
image: ghcr.io/whoigit/postgres-docker-scripts:13.5
container_name: postgres
volumes:
- production_postgres_data:/var/lib/postgresql/data
- production_postgres_data_backups:/backups
env_file:
- ./.envs/.production/.postgres
restart: unless-stopped
network_mode: "host"
redis:
image: redis:6
restart: unless-stopped
network_mode: "host"
frontend:
container_name: frontend
image: ghcr.io/whoigit/avast-skillsmatcher-frontend:stable
environment:
NODE_ENV: production
restart: unless-stopped
network_mode: "host"
nginx:
image: nginx:1.21.5
container_name: nginx
depends_on:
- django
volumes:
- ./nginx/log:/var/log/nginx # logs
- ./nginx:/etc/nginx/conf.d:ro
- /etc/ssl/certs:/etc/ssl/certs:ro # bind a local directory with the WHOI SSL certs
- /etc/ssl/private:/etc/ssl/private:ro
network_mode: "host"
restart: unless-stopped