-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
61 lines (57 loc) · 1.85 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
version: '3.9'
services:
postgres:
image: postgres:16-alpine
volumes:
- pgdata:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=orso-arpa
ports:
- 5432:5432
api:
build:
context: .
dockerfile: Dockerfile
target: base
# Enable volume mapping to watch for changes and rebuild inside of the container.
#volumes:
#- ./:/home/app
container_name: api
hostname: api
ports:
- 5000:5000
- "10000:10000"
- "10001:10001"
- "10002:10002"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ConnectionStrings__PostgreSQLConnection=host=postgres;database=orso-arpa;User Id=postgres;Password=postgres;
- EmailConfiguration__SmtpServer=mail
- EmailConfiguration__Port=1025
- EmailConfiguration__From=test@localhost
depends_on:
- postgres
- mail
mail:
image: mailhog/mailhog
environment:
- MH_STORAGE=maildir
- MH_MAILDIR_PATH=/maildir
volumes:
- ./.docker/mailhog:/maildir
ports:
- 1025:1025
- 8025:8025
azurite:
image: mcr.microsoft.com/azure-storage/azurite
container_name: "azurite"
restart: always
network_mode: service:api
command: "azurite --blobHost 0.0.0.0 --blobPort 10000 --queueHost 0.0.0.0 --queuePort 10001"
# Docker for Mac requires a mounted volume because filesystem mounts are not supported.
# https://github.com/microsoft/mssql-docker/issues/12
# https://adilsoncarvalho.com/using-mssql-on-linux-using-docker-for-mac-a5d4ac81e57f
volumes:
pgdata: