-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (37 loc) · 1.16 KB
/
docker-compose.yml
File metadata and controls
40 lines (37 loc) · 1.16 KB
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
version: '3.8'
services:
app:
build: .
container_name: idae-app
ports:
- "8081:80"
volumes:
- ./:/var/www/html:cached
environment:
# The project defines MDB_HOST/MDB_USER/MDB_PASSWORD in web/bin/config/constants.php
# Default to the internal docker "mongo" service below. To use a MongoDB running
# on the host machine instead, set MDB_HOST=host.docker.internal (Windows Docker Desktop)
# or MDB_HOST=host.docker.internal:27017 and uncomment if needed.
- MDB_HOST=mongo
- MDB_USER=admin
- MDB_PASSWORD=gwetme2011
- MDB_PREFIX=maw_
extra_hosts:
- "host.docker.internal:host-gateway"
restart: unless-stopped
mongo:
image: mongo:5.0
container_name: idae-mongo
restart: unless-stopped
environment:
# Initialize root user matching MDB_USER / MDB_PASSWORD used by the `app` service
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=gwetme2011
volumes:
- mongo_data:/data/db
- ./web/bin/docker/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
ports:
- "27017:27017"
volumes:
mongo_data:
driver: local