2016-01-30 04:25:16 +00:00
|
|
|
web:
|
|
|
|
restart: always
|
|
|
|
build: ./web
|
|
|
|
expose:
|
2016-01-31 08:33:28 +00:00
|
|
|
- "80"
|
2016-01-30 06:33:32 +00:00
|
|
|
ports:
|
2016-01-31 08:33:28 +00:00
|
|
|
- "6543:80"
|
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
|
2016-01-31 08:33:28 +00:00
|
|
|
build: ./nginx
|
2016-01-30 04:25:16 +00:00
|
|
|
ports:
|
2016-01-31 08:33:28 +00:00
|
|
|
- "8005:80"
|
2016-01-30 04:25:16 +00:00
|
|
|
links:
|
|
|
|
- web:web
|
|
|
|
|
|
|
|
postgres:
|
|
|
|
restart: always
|
2016-01-31 08:33:28 +00:00
|
|
|
build: ./postgres
|
2016-01-30 04:25:16 +00:00
|
|
|
volumes:
|
|
|
|
- pgdata:/var/lib/postgresql/data
|
|
|
|
expose:
|
|
|
|
- "5432"
|
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: 123456
|
|
|
|
POSTGRES_USER: postgres
|
|
|
|
|