-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
66 lines (62 loc) · 1.61 KB
/
docker-compose.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
version: '3.7'
services:
elide-backend:
image: elide-backend
container_name: elide-backend
build:
context: .
dockerfile: Dockerfile
ports:
- 5000:5000
- 5555:5555
depends_on:
- postgres
- redis
- mongo
env_file:
- .env
environment:
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}
- BULL_REDIS_HOST=redis
- BULL_REDIS_PORT=6379
- MONGO_URI=mongodb://${MONGO_USERNAME}:${MONGO_PASSWORD}@mongo:27017
volumes:
- ./src:/app/src
- elide_nodemodules:/app/node_modules
postgres:
image: postgres:14-alpine
container_name: elide-postgres
restart: always
ports:
- 5432:5432
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
volumes:
- elide_postgres:/var/lib/postgresql/data
redis:
image: redis:7.0-alpine
container_name: elide-redis
restart: always
ports:
- 6379:6379
mongo:
image: mongo
container_name: elide-mongo
restart: always
ports:
- 27017:27017
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD}
- MONGO_INITDB_DATABASE=${MONGO_DATABASE}
volumes:
- elide_mongo:/data/db
volumes:
elide_postgres:
driver: local
elide_nodemodules:
driver: local
elide_mongo:
driver: local