forked from biankyrou/CTruco
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
39 lines (38 loc) · 896 Bytes
/
docker-compose.yaml
File metadata and controls
39 lines (38 loc) · 896 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
36
37
38
39
version: "3.8"
services:
postgres:
image: postgres:14.2
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- POSTGRES_DB=ctruco
ports:
- '5432:5432'
volumes:
- .volume/postgres-data:/var/lib/postgresql/data
mongodb:
image: mongo
container_name: mongodb
ports:
- '27017:27017'
volumes:
- .volume/mongo-data:/data/db
environment:
- MONGO_INITDB_ROOT_USERNAME=rootuser
- MONGO_INITDB_ROOT_PASSWORD=rootpass
mongo-express:
image: mongo-express
container_name: mongo-express
restart: always
ports:
- '8081:8081'
depends_on:
- mongodb
environment:
- ME_CONFIG_MONGODB_ADMINUSERNAME=rootuser
- ME_CONFIG_MONGODB_ADMINPASSWORD=rootpass
- ME_CONFIG_MONGODB_SERVER=mongodb
networks:
default:
name: ctruco-network