30 lines
453 B
YAML
30 lines
453 B
YAML
postgresdata:
|
|
image: postgres
|
|
volumes:
|
|
- /var/lib/postgres
|
|
command: /bin/true
|
|
|
|
postgres:
|
|
image: postgres
|
|
volumes_from:
|
|
- postgresdata
|
|
|
|
web:
|
|
build: .
|
|
links:
|
|
- postgres
|
|
volumes:
|
|
- ".:/app"
|
|
environment:
|
|
VIRTUAL_HOST: flaskbase.local
|
|
ENV: development
|
|
|
|
proxy:
|
|
image: jwilder/nginx-proxy
|
|
volumes:
|
|
- /var/run/docker.sock:/tmp/docker.sock
|
|
ports:
|
|
- "80:80"
|
|
environment:
|
|
DEFAULT_HOST: flaskbase.local
|