forked from yverdon/geocity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
54 lines (50 loc) · 1.29 KB
/
docker-compose.dev.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
# Overrides for development
volumes:
pgdata:
services:
web:
# Uncomment those two lines for debug
#tty: true
#stdin_open: true
build:
args:
ENV: DEV
environment:
ENV: DEV
# Runserver for live reload
command: "python3 manage.py runserver 0.0.0.0:9000"
volumes:
# Mount code for live reload
- .:/code
# For dev, set the temp folder in the main code directory, for convenience
- ./_dev_volumes/private_documents:/private_documents
- ./_dev_volumes/public_documents:/public_documents
- ./_dev_volumes/archive:/archive
depends_on:
postgres:
condition: service_healthy
ports:
- "${DJANGO_DOCKER_PORT}:9000"
postgres:
image: postgis/postgis:13-3.2
restart: unless-stopped
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-U", "${PGUSER}" ]
interval: 5s
timeout: 10s
retries: 3
start_period: 10s
environment:
- POSTGRES_USER=${PGUSER}
- POSTGRES_PASSWORD=${PGPASSWORD}
- POSTGRES_DB=${PGDATABASE}
ports:
- "${POSTGRES_DOCKER_PORT}:5432"
volumes:
- pgdata:/var/lib/postgresql/data
mailhog:
container_name: mailhog
image: mailhog/mailhog
ports:
- 1025:1025 # smtp server
- 8025:8025 # web ui