-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (40 loc) · 1.25 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
version: '3'
volumes:
paleohurdat_production_postgres_data: {}
paleohurdat_production_postgres_data_backups: {}
paleohurdat_media_volume: {}
services:
paleohurdat_react:
image: ghcr.io/whoigit/paleohurdat-react-map:stable
container_name: paleohurdat_react
restart: unless-stopped
paleohurdat_django:
image: ghcr.io/whoigit/paleohurdat-api:stable
container_name: paleohurdat_django
depends_on:
- paleohurdat_postgres
- paleohurdat_redis
volumes:
- paleohurdat_media_volume:/app/media # <-- bind the media files. Shared volume. Need to also bind to nginx container service
env_file:
- ./.envs/.production/.django
- ./.envs/.production/.postgres
command: /start
restart: unless-stopped
paleohurdat_postgres:
image: ghcr.io/whoigit/postgres-postgis-docker:14
container_name: paleohurdat_postgres
volumes:
- paleohurdat_production_postgres_data:/var/lib/postgresql/data:Z
- paleohurdat_production_postgres_data_backups:/backups:z
env_file:
- ./.envs/.production/.postgres
restart: unless-stopped
paleohurdat_redis:
image: redis:6
container_name: paleohurdat_redis
restart: unless-stopped
networks:
default:
external:
name: habhub-network