-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (50 loc) · 1.15 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
version: '3.5'
services:
frontend:
build: client
volumes:
- ./client:/app
ports:
- "8080:8080"
networks:
- default
backend: &backend
build: backend
command: python manage.py runserver 0.0.0.0:8000
environment:
DEBUG: 'on'
# Development ONLY!!! This key should be hidden on production setup, never share this!
SECRET_KEY: 'pg)uoo^sn=l-e7x1dg-g4znf)u_tc=_4mwqz!f+1tlx3%)wzm!'
DATABASE_URL: postgis://wald:meischter@db:5432/waldmeister
ports:
- "8000:8000"
volumes:
- ./backend:/app/
links:
- "db:db"
networks:
- default
migrate:
<<: *backend
command: bash -c "python manage.py migrate"
ports: []
db:
image: mdillon/postgis
environment:
POSTGRES_USER: wald
POSTGRES_PASSWORD: meischter
POSTGRES_DB: waldmeister
expose:
- "5432"
networks:
- default
secured-local-nginx:
image: nginx:stable-alpine
volumes:
- ./secured-local-nginx/proxy.conf:/etc/nginx/conf.d/default.conf
- ./secured-local-nginx/ssl:/etc/nginx/ssl
ports:
- 8443:443
restart: on-failure
networks:
default: