-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
42 lines (39 loc) · 1.07 KB
/
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
version: '3.1'
services:
postgres-db:
image: postgres:15.5-alpine3.18
container_name: postgres-v2
env_file:
- ./postgres/postgres.env
restart: always
volumes:
- ./postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- 5432:5432
adminer:
image: adminer
restart: always
ports:
- 8080:8080
depends_on:
- postgres-db
environment:
- ADMINER_DESIGN=dracula
- ADMINER_DEFAULT_ENGINE=PostgreSQL
- ADMINER_DEFAULT_SERVER=postgres-db
- ADMINER_DEFAULT_USER=postgres
- ADMINER_DEFAULT_PASSWORD=changeme
- ADMINER_DEFAULT_DB=partition_registry
web-application:
build: .
command: /bin/sh -c "cd ./partition_registry/control && uvicorn mainflow:app --host 0.0.0.0 --port 5498"
ports:
- 5498:5498
depends_on:
- postgres-db
- adminer
environment:
- POSTGRES_APPLICATION_HOST=postgres-db
- POSTGRES_APPLICATION_USER=postgres
- POSTGRES_APPLICATION_PASSWORD=changeme
- POSTGRES_APPLICATION_DATABASE_NAME=partition_registry