-
-
Notifications
You must be signed in to change notification settings - Fork 34
/
docker-compose-dev.yml
34 lines (34 loc) · 1016 Bytes
/
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
version: "3.7"
services:
faction-mongo:
image: mongo:latest
ports:
- "27017:27017"
volumes:
- '~/.faction/data:/data/db'
environment:
- MONGO_INITDB_ROOT_USERNAME=faction_mongo_user
- MONGO_INITDB_ROOT_PASSWORD=faction_mongo_pass
tomcat-service:
build:
context: .
dockerfile: Dockerfile.dev
target: base_app
volumes:
- "~/.faction/templates:/opt/faction/templates"
- "~/.faction/modules:/opt/faction/modules"
environment:
- 'FACTION_REPORT_STORAGE=local'
- 'FACTION_MONGO_HOST=faction-mongo'
- 'FACTION_MONGO_DATABASE=faction'
- 'FACTION_MONGO_USER=faction_mongo_user'
- 'FACTION_MONGO_PASSWORD=faction_mongo_pass'
- 'FACTION_SECRET_KEY=faction_encryption_key'
- 'FACTION_OAUTH_CALLBACK=http://localhost:8080'
links:
- faction-mongo
command: ["/usr/local/tomcat/bin/catalina.sh", "run"]
ports:
- "8080:8080"
depends_on:
- faction-mongo