-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.dev.yml
83 lines (75 loc) · 1.64 KB
/
docker-compose.dev.yml
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
version: '3'
services:
web-server:
container_name: web-server
build: ./web-server
restart: always
volumes:
- ./web-server/conf.d:/etc/nginx/conf.d
- ./web-server/nginx.conf:/etc/nginx/nginx.conf
ports:
- "8080:8080"
depends_on:
- client
- server
- smtp
- postgres
- mongo
- cache
client:
container_name: client
build: ./client
stdin_open: true
restart: always
volumes:
- "./client:/App"
ports:
- "3000:3000"
server:
container_name: backend
build: ./server
restart: always
volumes:
- "./server:/backend"
ports:
- "80:80"
- "443:443"
smtp:
container_name: smtp
image: jeanberu/mailcatcher
environment:
- SMTP_PORT=${SMTP_PORT}
- HTTP_PORT=${HTTP_PORT}
ports:
- "1025:1025"
- "1080:1080"
postgres:
container_name: primary
image: postgres:latest
environment:
- POSTGRES_USER={POSTGRES_USER}
- POSTGRES_PASSWORD={POSTGRES_PASSWORD}
ports:
- "5433:5432"
mongo:
container_name: secondary
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD}
volumes:
- "./data/mongodb:/data/db"
ports:
- "27017:27017"
cache:
container_name: cache
image: redis
restart: always
ports:
- "6379:6379"
volumes:
- "./data/redis/redis-data:/var/lib/redis"
- "./data/redis/redis.conf:/usr/local/etc/redis/redis.conf"
environment:
REDIS_REPLICATION_MODE: master