-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-dev.yml
51 lines (46 loc) · 1.33 KB
/
docker-compose-dev.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
47
48
49
50
51
# This docker-compose file aim to provide a development environement to avoid
# having version mismatch with the production environement, e.g. meteor or node.
#
# It also expose the mongoDB port to facilitate the use of a mongoDB browser
# (e.g. robo3t).
#
# For the app service, the configuration user
# (https://docs.docker.com/compose/compose-file/#domainname-hostname-ipc-mac_address-privileged-read_only-shm_size-stdin_open-tty-user-working_dir)
# attempt to use the same user as the host user, to avoid permssions problems,
# especially on the /app/.meteor/local folder.
#
version: '3'
services:
app:
container_name: wp-veritas_meteor
build:
context: .
dockerfile: Dockerfile-dev
ports:
- '80:3000'
links:
- mongo
depends_on:
- mongo
volumes:
- $PWD/app:/app
- $PWD:/src
user: ${UID:-1000}:${GID:-1000}
environment:
ROOT_URL: ${APP_ROOT_URL:-http://localhost}
MONGO_URL: mongodb://mongo:27017/meteor
PORT: 3000
METEOR_SETTINGS_FILE: /src/app/meteor-settings.json # See docker/entrypoint.sh
env_file:
- /keybase/team/epfl_wpveritas/env
mongo:
container_name: wp-veritas_mongo
image: mongo:latest
ports:
- '27017:27017'
command:
- --storageEngine=wiredTiger
volumes:
- data:/data/db
volumes:
data: