-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (33 loc) · 855 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (33 loc) · 855 Bytes
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
version: '3.5'
services:
web:
image: web
build:
context: ./
dockerfile: Dockerfile
volumes:
- '.:/usr/src/app'
ports:
- 5002:5000
environment:
- APP_NAME=Flask Sample App
- FLASK_DEBUG=1
- PYTHONUNBUFFERED=0
- APP_SETTINGS=project.server.config.ProductionConfig
- DATABASE_URL=postgres://postgres:postgres@web-db:5432/users_dev
- DATABASE_TEST_URL=postgres://postgres:postgres@web-db:5432/users_test
- SECRET_KEY=change_me_in_prod
- EMAIL_USERNAME=$EMAIL_USERNAME
- EMAIL_PASSWORD=$EMAIL_PASSWORD
depends_on:
- web-db
web-db:
container_name: web-db
build:
context: ./project/server/db
dockerfile: Dockerfile
ports:
- 5435:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres