-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (49 loc) · 1.46 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
services:
tracker_database:
image: bitnami/postgresql
restart: always
container_name: tracker_database
volumes:
- ./src/test.db:/app/test.db
- postgres_data:/var/lib/postgresql/data
env_file: ".env"
ports:
- ${DATABASE_EXTERNAL_PORT}:${DATABASE_PORT}
expose:
- ${DATABASE_PORT}
environment:
- POSTGRESQL_USERNAME=${DATABASE_ADMIN}
- POSTGRESQL_PASSWORD=${DATABASE_ADMIN_PASSWORD}
- POSTGRESQL_DATABASE=${DATABASE_DEFAULT_NAME}
- POSTGRESQL_HOST=${DATABASE_HOST}
- POSTGRESQL_PORT=${DATABASE_PORT}
record_service:
container_name: record_service
build: ./record_service/src
restart: always
command: "sh -c 'uvicorn main:app --reload --host ${RECORD_SERVICE_HOST} --port ${RECORD_SERVICE_PORT}'"
volumes:
- ./record_service/src:/app/src
ports:
- ${RECORD_SERVICE_PORT}:${RECORD_SERVICE_PORT}
expose:
- ${RECORD_SERVICE_PORT}
env_file: ".env"
depends_on:
- tracker_database
analytic_service:
container_name: analytic_service
build: ./analytic_service/src
restart: always
command: "sh -c 'uvicorn main:app --reload --host ${ANALYTIC_SERVICE_HOST} --port ${ANALYTIC_SERVICE_PORT}'"
volumes:
- ./analytic_service/src:/app/src
ports:
- ${ANALYTIC_SERVICE_PORT}:${ANALYTIC_SERVICE_PORT}
expose:
- ${ANALYTIC_SERVICE_PORT}
env_file: ".env"
depends_on:
- tracker_database
volumes:
postgres_data: