-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
82 lines (75 loc) · 1.56 KB
/
Copy pathdocker-compose.yml
File metadata and controls
82 lines (75 loc) · 1.56 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
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
version: "3.8"
services:
event-mgmt-core:
container_name: event-mgmt-core
build: .
depends_on:
- db
restart: unless-stopped
env_file: .env
environment:
- DATABASE_HOST=event-mgmt-postgres
develop:
watch:
- action: sync+restart
path: .
target: /app
ignore:
- bin/
- api/
- tmp/
- coverage/
- .vscode/
networks:
- event-mgmt-network
ports:
- 8081:8081
db:
image: postgres
container_name: event-mgmt-postgres
restart: always
ports:
- 5432:5432
env_file:
- db.env
volumes:
- db_data:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- event-mgmt-network
pgadmin:
image: dpage/pgadmin4
depends_on:
- db
container_name: event-mgmt-pgadmin
restart: always
ports:
- 8888:80
env_file:
- db.env
volumes:
- pgadmin_data:/var/lib/pgadmin
networks:
- event-mgmt-network
configs:
- source: servers.json
target: /pgadmin4/servers.json
configs:
servers.json:
content: |
{"Servers": {"1": {
"Group": "Servers",
"Name": "${DATABASE_NAME}",
"Host": "event-mgmt-postgres",
"Port": ${DATABASE_PORT},
"MaintenanceDB": "event-mgmt-db",
"Username": "${DATABASE_USER}",
"SSLMode": "${DATABASE_SSL_MODE}"
}}}
volumes:
db_data:
pgadmin_data:
driver: local
networks:
event-mgmt-network:
driver: bridge