Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (48 sloc) 905 Bytes
version: "3.7"
services:
flask_app:
init: true
build:
context: ./psycopg2
dockerfile: Dockerfile
environment:
- PORT_APP=3000
- PORT_API=4000
- WORKERS=1
- ASYNC_CORES=2000
- MODULE=app
ports:
- "127.0.0.1:3000:3000"
depends_on:
- slow_api
- postgres
flask_app_2:
init: true
build:
context: ./psycopg2
dockerfile: Dockerfile
environment:
- PORT_APP=3001
- PORT_API=4000
- WORKERS=1
- ASYNC_CORES=2000
- MODULE=patched
ports:
- "127.0.0.1:3001:3001"
depends_on:
- slow_api
- postgres
slow_api:
init: true
build: ./slow_api
environment:
- PORT=4000
expose:
- "4000"
postgres:
image: postgres
environment:
POSTGRES_USER: example
POSTGRES_PASSWORD: example
expose:
- "5432"
You can’t perform that action at this time.