-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
69 lines (64 loc) · 1.65 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
68
69
services:
minio:
image: bitnami/minio
container_name: commu_minio
restart: unless-stopped
environment:
- MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin
ports:
- "127.0.0.1:${MINIO_PORT_ON_DOCKER_HOST:-9000}:9000"
- "127.0.0.1:${MINIO_ADMIN_PORT_ON_DOCKER_HOST:-9001}:9001"
volumes:
- minio_data:/bitnami/minio/data
postgres:
container_name: commu_postgres
image: postgres:15-alpine
environment:
POSTGRES_DB: communaute
POSTGRES_USER: communaute
POSTGRES_PASSWORD: password
shm_size: 64M
volumes:
- postgres_data:/var/lib/postgresql/data
- postgres_data_backups:/backups
restart: always
ports:
- "127.0.0.1:${POSTGRESQL_ADDON_PORT:-5432}:5432"
django:
profiles: [ "django" ]
container_name: commu_django
env_file:
- .env
environment:
# override values in .env
POSTGRESQL_ADDON_HOST: postgres
CELLAR_ADDON_HOST: minio:9000
depends_on:
- postgres
build:
context: .
dockerfile: ./docker/django/Dockerfile
args:
APP_USER: app
APP_DIR: /app
PYTHON_VERSION: 3.11
PG_MAJOR: 15
volumes:
# Mount the current directory into `/app` inside the running container.
- .:/app
restart: always
ports:
- "127.0.0.1:${DJANGO_PORT_ON_DOCKER_HOST:-8000}:8000"
- "127.0.0.1:${DJANGO_DEBUGPY_PORT:-5678}:5678"
mailhog:
profiles: [ "mailhog" ]
image: mailhog/mailhog:latest
restart: always
ports:
- 127.0.0.1:1025:1025
- 127.0.0.1:8025:8025
volumes:
postgres_data:
postgres_data_backups:
minio_data: