forked from edisonmora95/ppl_app_lab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (41 loc) · 1.05 KB
/
docker-compose.yml
File metadata and controls
45 lines (41 loc) · 1.05 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
41
42
43
44
45
# https://github.com/yannart/docker-compose-demo
# https://docs.docker.com/samples/httpd/#httpdalpine
# https://docs.docker.com/compose/compose-file/#compose-and-docker-compatibility-matrix
version: '3'
services:
web:
build: .
container_name: "ppl"
env_file:
.env
links:
- mongodb
depends_on:
- mongodb
environment:
- DOCKER=docker
volumes:
- ".:/home/app"
command: npm run dev
ports:
- "8000:8000"
mongodb:
image: mongo:latest
container_name: "mongodb"
ports:
- 27017:27017
restart: always
command: mongod --smallfiles --logpath=/dev/null # --quiet
mongo-seed:
image: mongo:latest
environment:
- MONGO_DATA_DIR=/home/app/data/db
- MONGO_LOG_DIR=/dev/null
volumes:
- "./data/db:/home/app/data/db"
command: mongorestore --drop --quiet --host mongodb --port 27017 --db ppl /home/app/data/db
# apache:
# image: httpd:2.4
# volumes:
# - "./apache2:/etc/apache2"
# command: a2enmod proxy rewrite proxy_http proxy_wstunnel