-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
45 lines (42 loc) · 1.11 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
version: '2.4'
services:
app:
container_name: mellow-bike-map
image: mellow-bike-map
build: ./app
stdin_open: true
tty: true
ports:
- 8000:8000
depends_on:
postgres:
condition: service_healthy
volumes:
- .:/app
- mellow-bike-map-node-modules:/app/app/node_modules
environment:
DJANGO_SECRET_KEY: reallysupersecret
DJANGO_MANAGEPY_MIGRATE: "on"
command: /app/app/docker-entrypoint.sh python manage.py runserver 0.0.0.0:8000
postgres:
container_name: mellow-bike-map-postgres
image: mellow-bike-map-postgres
build: ./db
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
environment:
POSTGRES_DB: mbm
POSTGRES_PASSWORD: postgres
volumes:
- mellow-bike-map-db-data-postgis-16:/var/lib/postgresql/data
- ./db/create-extensions.sql:/docker-entrypoint-initdb.d/create-extensions.sql
- ./:/app
ports:
- 32001:5432
volumes:
mellow-bike-map-db-data:
mellow-bike-map-db-data-postgis-16:
mellow-bike-map-node-modules: