-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (33 loc) · 820 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (33 loc) · 820 Bytes
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
version: "3"
services:
database:
image: postgres:latest
container_name: ssm_database
ports:
- "15432:5432"
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: password
POSTGRES_DB: my_database
volumes:
- postgres_data:/var/lib/postgresql/data
test_database:
image: postgres:latest
container_name: ssm_test_database
ports:
- "15433:5432" # Different port to avoid conflicts
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: password
POSTGRES_DB: test_database
volumes:
- test_postgres_data:/var/lib/postgresql/data
mailhog:
image: jcalonso/mailhog
container_name: ssm_mailhog
ports:
- "1026:1025" # SMTP port
- "8026:8025" # Web UI port
volumes:
postgres_data:
test_postgres_data: