forked from commitglobal/votemonitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
92 lines (81 loc) · 1.9 KB
/
docker-compose.yaml
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
version: '3.8'
services:
votemonitorapi:
image: votemonitorapi
build:
context: api
dockerfile: src/Vote.Monitor.Api/Dockerfile
args:
- BUILD_CONFIGURATION=Development
- REVISION=LocalBuild
container_name: votemonitorapi
env_file:
- .env
ports:
- "5000:8080"
depends_on:
db:
condition: service_started
posgress_ui:
image: dpage/pgadmin4
restart: always
container_name: pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: pass
ports:
- "5050:80"
depends_on:
db:
condition: service_started
db:
image: postgres:latest
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: docker
POSTGRES_DB: docker
ports:
- "5432:5432"
command: ["postgres", "-c", "log_statement=all"]
container_name: postgresql-local
volumes:
- db-data:/var/lib/postgresql/data:rw,size=200m
mailpit:
image: axllent/mailpit
container_name: mailpit
restart: always
volumes:
- ./.data:/data
ports:
- 8025:8025
- 1025:1025
environment:
MP_MAX_MESSAGES: 5000
MP_DATA_FILE: /data/mailpit.db
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
hangfire:
image: votemonitorhangfire
build:
context: api
dockerfile: src/Vote.Monitor.Hangfire/Dockerfile
args:
- BUILD_CONFIGURATION=Development
- REVISION=LocalBuild
container_name: votemonitorhangfire
env_file:
- .env
ports:
- "5001:8080"
depends_on:
db:
condition: service_started
volumes:
db-data:
driver: local
# docker-compose up -d
# docker-compose down
# docker-compose ps
# docker-compose logs
# docker inspect <containerid> - inspect postgress to get the ip address , la mine ii 172.20.0.2