brewman-docker/docker-compose.yml

41 lines
592 B
YAML
Raw Normal View History

2016-01-30 04:25:16 +00:00
web:
restart: always
build: ./web
expose:
2016-01-30 06:33:32 +00:00
- "6543"
ports:
- "6543:6543"
2016-01-30 04:25:16 +00:00
links:
- postgres:postgres
volumes:
- /usr/src/app/static
environment:
DB_NAME: brew
2016-01-30 06:33:32 +00:00
DB_USER: brew
2016-01-30 04:25:16 +00:00
DB_PASS: 123456
SECRET_KEY: secret
nginx:
restart: always
build: ./nginx/
ports:
- "80:80"
volumes:
- /www/static
volumes_from:
- web
links:
- web:web
postgres:
restart: always
2016-01-30 06:33:32 +00:00
image: ./postgres
2016-01-30 04:25:16 +00:00
volumes:
- pgdata:/var/lib/postgresql/data
expose:
- "5432"
environment:
POSTGRES_PASSWORD: 123456
POSTGRES_USER: postgres