-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.dev.yaml
50 lines (50 loc) · 1.26 KB
/
compose.dev.yaml
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
version: "3.9"
services:
mongo:
image: mongo:4.4
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: "${mongoUser}"
MONGO_INITDB_ROOT_PASSWORD: "${mongoPassword}"
ports:
- 27017:27017
volumes:
- mongo-data:/data/db
mongo-express:
image: mongo-express
restart: always
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: "${mongoUser}"
ME_CONFIG_MONGODB_ADMINPASSWORD: "${mongoPassword}"
ME_CONFIG_MONGODB_URL: "${mongo}"
postgresdockerdashboard:
image: postgres
restart: always
environment:
POSTGRES_USER: "${pguser}"
POSTGRES_PASSWORD: "${pgpassword}"
ports:
- 5432:5432
volumes:
- postgres-data:/var/lib/postgresql/data
dashboard:
build:
context: .
dockerfile: dev.Dockerfile
ports:
- 5000:5000
- 3002:3000
volumes:
- .:/app/
command: npm run dev --reload
volumes:
mongo-data:
driver: local
postgres-data:
driver: local
networks:
default:
external:
name: gstreet