-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-local.yml
44 lines (41 loc) · 1.04 KB
/
docker-compose-local.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
version: '3.8'
services:
pg_db:
image: postgres:12.4
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=1882320
- POSTGRES_DB=MSmileDb
volumes:
- /home/v0id/msmile-files/db-data:/var/lib/postgresql/data
ports:
- ${POSTGRES_PORT:-5432}:5432
backend:
environment:
- ASPNETCORE_URLS=http://+:8000
- MSmile_ConnectionStrings__MSmileDb=HOST=pg_db;DB=MSmileDb;UID=postgres;PWD=1882320;PORT=5432;
- MSmile_LogSettings__Path=/var/lib/msmile/logs/Log-{Date}.log
build:
context: .
dockerfile: ci/Dockerfile(amd64)
args:
logpath: /var/lib/msmile/logs/
ports:
- "8000:8000"
volumes:
- /home/v0id/msmile-files/logs:/var/lib/msmile/logs/
depends_on:
- pg_db
ng_proxy:
image: nginx:latest
restart: always
ports:
- "80:80"
environment:
- NGINX_HOST=foobar.com
- NGINX_PORT=8000
volumes:
- ./ci/nginx-local.conf:/etc/nginx/nginx.conf
depends_on:
- backend