2018-03-25 17:11:49 +00:00
|
|
|
# License: CC0-1.0
|
2018-03-25 17:30:42 +00:00
|
|
|
version: '2'
|
|
|
|
services:
|
|
|
|
web:
|
|
|
|
build:
|
2018-09-06 21:29:07 +00:00
|
|
|
context: ../..
|
|
|
|
dockerfile: docker/debug/Dockerfile
|
2018-03-25 17:30:42 +00:00
|
|
|
args:
|
2018-09-06 21:29:07 +00:00
|
|
|
- USER
|
|
|
|
user: ${USER}
|
|
|
|
|
|
|
|
environment:
|
|
|
|
- DATABASE_HOST=db
|
|
|
|
- MEMCACHE_SERVERS=memcached
|
|
|
|
- USER=${USER}
|
|
|
|
|
2018-03-25 17:30:42 +00:00
|
|
|
volumes:
|
2018-09-06 21:29:07 +00:00
|
|
|
- ../../:/myapp
|
|
|
|
|
2018-03-25 17:30:42 +00:00
|
|
|
ports:
|
2018-09-06 21:29:07 +00:00
|
|
|
- "5000:5000"
|
2018-03-25 17:30:42 +00:00
|
|
|
depends_on:
|
2018-09-06 21:29:07 +00:00
|
|
|
- db
|
|
|
|
- memcached
|
|
|
|
db:
|
|
|
|
image: postgres:9.6
|
2018-03-25 17:30:42 +00:00
|
|
|
environment:
|
2018-09-06 21:29:07 +00:00
|
|
|
POSTGRES_USER: "admin"
|
|
|
|
POSTGRES_PASSWORD: "password"
|
2018-03-25 17:30:42 +00:00
|
|
|
memcached:
|
|
|
|
image: memcached
|
2018-09-06 21:29:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|