-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (65 loc) · 1.43 KB
/
docker-compose.yml
File metadata and controls
72 lines (65 loc) · 1.43 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
version: "3.8"
services:
# PostgreSQL Service
db:
image: postgres:13-alpine
container_name: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: passwordManagement
ports:
- "5432:5432"
volumes:
- db-data:/var/lib/postgresql/data
networks:
- app-network
# MailHog Service
mailhog:
image: mailhog/mailhog
container_name: mailhog
ports:
- "1025:1025" # SMTP server
- "8025:8025" # Web UI to view emails
networks:
- app-network
volumes:
- ./mailhog_data:/data
# Go Backend Service
password-manager:
build:
context: .
dockerfile: password-manager/Dockerfile
container_name: password-manager
environment:
DATABASE_URL: "postgres://postgres:password@db:5432/passwordManagement?sslmode=disable"
MAILHOG_HOST: "mailhog"
MAILHOG_PORT: "1025"
ports:
- "8000:8000"
depends_on:
- db
- mailhog
volumes:
- ./config.yml:/app/config.yml
networks:
- app-network
frontend:
build:
context: .
dockerfile: frontend-password-manager/Dockerfile
container_name: frontend-password-manager
ports:
- "3001:80"
depends_on:
- password-manager
networks:
- app-network
environment:
- CHOKIDAR_USEPOLLING=true
volumes:
db-data:
app-data:
networks:
app-network:
driver: bridge