-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
45 lines (40 loc) · 847 Bytes
/
docker-compose.yaml
File metadata and controls
45 lines (40 loc) · 847 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
41
42
43
44
45
version: '3.5'
services:
api:
build: ./api
container_name: test-api
depends_on:
- db
restart: always
environment:
- GUNICORN_WORKER_TYPE=$GUNICORN_WORKER_TYPE # eventlet gevent sync
- INTERPRETER=$INTERPRETER # pypy3 python3
- DB_CONNECTOR=$DB_CONNECTOR # pg8000 psycopg
networks:
- overlay
ports:
- 5000:5000
# sanic_api:
# build: ./sanic
# container_name: sanic-api
# depends_on:
# - db
# restart: always
# networks:
# - overlay
# ports:
# - 5000:5000
db:
image: postgres:11-alpine
container_name: test-db
restart: always
environment:
- POSTGRES_PASSWORD=password
volumes:
- /profiling/async:/var/lib/postgresql/data
networks:
- overlay
expose:
- 5432
networks:
overlay: