-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose-dev.yaml
88 lines (81 loc) · 2.12 KB
/
docker-compose-dev.yaml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
version: '3.9'
services:
application:
build:
context: application
dockerfile: Dockerfile
args:
HELM_VERSION: ${HELM_VERSION}
KUBECTL_VERSION: ${KUBECTL_VERSION}
image: back-end
command: ["./start.sh", "--sync-db", "--reload"]
volumes:
- ./application:/home/app/hub
- ./credentials:/home/app/hub/credentials
- ./.env:/home/app/hub/.env
networks:
- minikube
ports:
- '8000:8000'
environment:
DATABASE_URL: postgresql+asyncpg://postgres_user:super_secret_password@postgres/service_hub
TEST_DATABASE_URL: postgresql+asyncpg://postgres_user:super_secret_password@postgres/test
FILE_STORAGE_ROOT: /tmp
SECRETS_DIRECTORY: credentials
UI_HOST: http://localhost:3000
ENV_FILE: .env
depends_on:
- postgres
task-executor:
image: back-end
command: ./start-task-executor.sh
volumes:
- ./application:/home/app/hub
- ./credentials:/home/app/hub/credentials
- ./.env:/home/app/hub/.env
networks:
- minikube
environment:
DATABASE_URL: postgresql+asyncpg://postgres_user:super_secret_password@postgres/service_hub
TEST_DATABASE_URL: postgresql+asyncpg://postgres_user:super_secret_password@postgres/test
FILE_STORAGE_ROOT: /tmp
SECRETS_DIRECTORY: credentials
UI_HOST: http://localhost:3000
ENV_FILE: .env
PYTHONPATH: .
PYTHONUNBUFFERED: 1
depends_on:
- postgres
- application
frontend:
build:
context: frontend
dockerfile: Dockerfile
networks:
- minikube
ports:
- '3000:80'
depends_on:
- application
###
postgres:
image: postgres:14.4
# command: [
# 'postgres',
# '-c', 'log_statement=all',
# '-c', 'log_duration=true'
# ]
environment:
- POSTGRES_USER=postgres_user
- POSTGRES_PASSWORD=super_secret_password
- POSTGRES_DB=service_hub
ports:
- '5432:5432'
volumes:
- ./docker-data/postgres-data:/var/lib/postgresql/data
networks:
- minikube
networks:
minikube:
name: minikube
external: true