-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (46 loc) · 1.01 KB
/
docker-compose.yml
File metadata and controls
51 lines (46 loc) · 1.01 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
43
44
45
46
47
48
49
50
51
version: '3.8'
services:
frontend:
build:
context: ./Frontend/WordApp
dockerfile: Dockerfile
container_name: c_wordapp_frontend
ports:
- "4200:80"
depends_on:
- backend-service
networks:
- wordapp-network
backend-service:
build:
context: ./Backend/WordApp
dockerfile: src/WordApp.WebAPI/Dockerfile
container_name: c_wordapp_backend
ports:
- "5000:5000"
environment:
- ASPNETCORE_URLS=http://+:5000
- ASPNETCORE_ENVIRONMENT=Development
depends_on:
- postgresql-server
networks:
- wordapp-network
postgresql-server:
image: postgres:16
container_name: c_wordapp_database
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: WordApp
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- wordapp-network
volumes:
postgres_data:
networks:
wordapp-network:
driver: bridge