-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (49 loc) · 1001 Bytes
/
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
52
53
54
version: '3.8'
services:
web:
container_name: web
image: ilya3004/lms:web
build:
context: src/Web
dockerfile: Dockerfile
depends_on:
- api
ports:
- "4202:80"
networks:
- dev
api:
image: ilya3004/lms:api
build:
context: .
dockerfile: src/Api/Dockerfile
ports:
- "8181:80"
environment:
- ConnectionStrings__DefaultConnection=Host=postgres;Port=5432;Database=LMS;User Id=postgres;Password=password;
- ASPNETCORE_URLS=http://+:80
depends_on:
- postgres
networks:
- dev
volumes:
- ./uploads:/app/uploads
postgres:
container_name: postgres
image: postgres
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- dev
networks:
dev:
driver: bridge
volumes:
postgres_data:
uploads: