-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (49 loc) · 1.16 KB
/
docker-compose.yml
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
46
47
48
49
50
51
version: "3.8"
services:
api:
build:
context: .
dockerfile: ./Dockerfile
args:
development: "True"
restart: on-failure
ports:
- "${FLASK_RUN_PORT}:8001"
command: "pipenv run flask run --host=${FLASK_RUN_HOST} --port=8001"
networks:
- kafka
- bookstore_billing
depends_on:
- db
env_file:
- .env
- .secrets.env
volumes:
- ./src/bookstore_billing.log:/app/bookstore_billing.log
- ./src/bookstore_billing_errors.log:/app/bookstore_billing_errors.log
- ./src/consumed_data.log:/app/consumed_data.log
db:
image: postgres:11.8
container_name: "bookstore_billing_database"
environment:
- POSTGRES_USER=${DB_USERNAME}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DB_NAME}
ports:
- "54322:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./deploy/postgres/local_db:/docker-entrypoint-initdb.d
env_file:
- .env
- .secrets.env
networks:
- bookstore_billing
networks:
kafka:
external: true
name: kafka
bookstore_billing:
name: bookstore_billing
volumes:
postgres_data: