-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (59 loc) · 1.45 KB
/
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
55
56
57
58
59
60
61
62
63
version: '3.4'
name: ecommerce_project_backend
networks:
default:
driver: bridge
services:
ecommerce.api:
image: ${DOCKER_REGISTRY-}ecommerceapi
container_name: ecommerce_api
build:
context: .
dockerfile: ECommerce.Api/Dockerfile
depends_on:
- app_db
- mail_dev
environment:
- ConnectionStrings__ECommerceConnectionString=Server=app_db;Port=5432;Database=ecommerce_db;User Id=postgres;Password=postgres;
- ConnectionStrings__ECommerceIdentityConnectionString=Server=app_db;Port=5432;Database=ecommerce_db;User Id=postgres;Password=postgres;
restart: always
ports:
- "8080:8080"
networks:
- default
volumes:
- ecommerce_data:/app/.storage
- ecommerce_data:/app/.logs
app_db:
image: postgres:latest
container_name: app_db
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=ecommerce_db
volumes:
- app_db_data:/var/lib/postgresql/data
ports:
- "5432:5432"
restart: always
networks:
- default
mail_dev:
image: maildev/maildev:latest
container_name: mail_dev
restart: always
environment:
- MAILDEV_WEB_PORT=1080
- MAILDEV_SMTP_PORT=1025
ports:
- "1080:1080"
- "1025:1025"
networks:
- default
volumes:
app_db_data:
name: app_db_data
driver: local
ecommerce_data:
name: ecommerce_data
driver: local