forked from CardSorter/CardSorterServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (43 loc) · 1.09 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
version: '3'
services:
mongo:
image: mongo:4.4
container_name: card_sorter_mongodbdev
restart: "no"
ports:
- 27017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: "rest_api"
MONGO_INITDB_ROOT_PASSWORD: "password"
MONGO_INITDB_DATABASE: "card_sorter"
MONGODB_DATA_DIR: /data/db
MONDODB_LOG_DIR: /dev/null
volumes:
- ./mongodata:/data/db
# mongo-express:
# image: mongo-express
# restart: "no"
# ports:
# - 8081:8081
# environment:
# ME_CONFIG_MONGODB_ADMINUSERNAME: "rest_api"
# ME_CONFIG_MONGODB_ADMINPASSWORD: "password"
# depends_on:
# - mongo
card_sorter_postgres:
image: postgres
container_name: card_sorter_postgres
restart: "no"
ports:
- 5432:5432
env_file:
- db_init.env
volumes:
- ./db_data:/var/lib/postgres/data
card_sorter_adminer:
image: adminer
restart: "no"
ports:
- 8080:8080
depends_on:
- card_sorter_postgres