-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (36 loc) · 814 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
40 lines (36 loc) · 814 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
37
38
39
40
version: "3.3"
services:
postgres:
build: ./db
container_name: postgres
ports:
- 5432:5432
networks:
- net
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- postgres:/var/lib/postgresql/data
api:
build: ./src
container_name: api
volumes:
- ./src:/usr/src
ports:
- 5000:5000
networks:
- net
environment:
- APP_SETTINGS=config.DevelopmentConfig
- DATABASE_URL=postgres:postgres@postgres:5432/db_dev
- DATABASE_TEST_URL=postgres:postgres@postgres:5432/db_test
depends_on:
- postgres
links:
- postgres
command: gunicorn --worker-class eventlet -w 4 --preload -b 0.0.0.0:5000 manage:app
volumes:
postgres:
networks:
net: