-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
66 lines (61 loc) · 1.27 KB
/
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
x-common-settings: &common-settings
build:
context: .
dockerfile: ./containers/django.DEV.Dockerfile
depends_on:
postgres:
condition: service_healthy
env_file:
- .env
volumes:
- .:/app
- static_DEV:/data/static
- media_DEV:/data/media
services:
django:
<<: *common-settings
container_name: letteranne_django_DEV
command: /start-dev.sh
init: true
tty: true
ports:
- 8000:8000
postgres:
image: docker.io/postgres:16.2
container_name: letteranne_postgres_DEV
env_file:
- .env
ports:
- 5432:5432
healthcheck:
test:
[
"CMD-SHELL",
"pg_isready -d $$POSTGRES_DB -U $$POSTGRES_USER"
]
interval: 3s
timeout: 3s
retries: 30
init: true
volumes:
- postgres_data_DEV:/var/lib/postgresql/data
docs:
container_name: letteranne_docs_DEV
image: docker.io/squidfunk/mkdocs-material
command: ["serve", "--dev-addr=0.0.0.0:4000"]
ports:
- 4000:4000
volumes:
- ./docs:/docs
stdin_open: true
tty: true
mailcrab:
image: docker.io/marlonb/mailcrab:latest
ports:
- 1080:1080
- 1025:1025
networks: [default]
volumes:
postgres_data_DEV: {}
media_DEV: {}
static_DEV: {}