-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (38 loc) · 1.15 KB
/
docker-compose.yml
File metadata and controls
42 lines (38 loc) · 1.15 KB
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.9"
services:
site:
image: web_site
container_name: site
build:
context: .
dockerfile: ./Site/Dockerfile
depends_on:
- db
environment:
ASPNETCORE_URLS: "http://+:12555"
BashLearningPrivateKey: "{\"Key\":[7,5,10,32,41],\"Alphabet\":\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!?@#$$%^\u0026*()0123456789 \"}"
BashLearningDB: "host=localhost;Port=5432;Database=SystemDb;User Id=postgres;Password=postgres;"
COMMAND_EXECUTOR_URL: "http://localhost:55555/ContainerDistributorApi/container"
DATA_API_URL: "http://localhost:12555"
network_mode: host
db:
image: postgres
environment:
POSTGRES_DB: SystemDb
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
restart: always
network_mode: host
volumes:
- /home/db
db_init:
image: bash_learning_db_init
build:
context: .
dockerfile: InitialDataBase/Dockerfile
environment:
ACTION: "INIT"
BashLearningDB: "host=localhost;Port=5432;Database=SystemDb;User Id=postgres;Password=postgres;"
depends_on:
- db
network_mode: host