-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (54 loc) · 1.67 KB
/
docker-compose.yml
File metadata and controls
59 lines (54 loc) · 1.67 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
version: '3.8'
services:
mongodb:
image: mongo:7.0
container_name: gitnation-mongodb
restart: unless-stopped
ports:
- "27018:27017" # Using 27018 temporarily for parallel development
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: admin_password
MONGO_INITDB_DATABASE: gitnation
volumes:
- mongodb_data:/data/db
- ./docker/mongodb/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
networks:
- gitnation_network
mongo-express:
image: mongo-express:latest
container_name: gitnation-mongo-express
restart: unless-stopped
ports:
- "8082:8081" # Using 8082 temporarily for parallel development
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: admin
ME_CONFIG_MONGODB_ADMINPASSWORD: admin_password
ME_CONFIG_MONGODB_URL: mongodb://admin:admin_password@mongodb:27017/
ME_CONFIG_BASICAUTH: false
ME_CONFIG_MONGODB_ENABLE_ADMIN: true
depends_on:
- mongodb
networks:
- gitnation_network
# MailHog: Local email testing (catches all emails)
# Use this for local development instead of AWS SES
# Emails won't actually send - view them at http://localhost:8026
mailhog:
image: mailhog/mailhog:latest
container_name: gitnation-mailhog
restart: unless-stopped
ports:
- "1026:1025" # SMTP server
- "8026:8025" # Web UI for viewing emails
networks:
- gitnation_network
labels:
- "description=Local email catcher for development"
- "usage=Set EMAIL_PROVIDER=mailhog in .env.local"
volumes:
mongodb_data:
driver: local
networks:
gitnation_network:
driver: bridge