-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (57 loc) · 1.58 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
services:
mongodb:
image: mongo:latest
container_name: banalize-mongodb
restart: unless-stopped
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: pass
MONGO_INITDB_DATABASE: admin
volumes:
- mongodb-data:/data/db
api:
image: banalize-api:0.0.1-beta
container_name: banalize-api
restart: unless-stopped
network_mode: "host"
build:
context: .
dockerfile: apps/api/Dockerfile
cap_add:
- NET_ADMIN
- NET_RAW
depends_on:
- mongodb
environment:
BANALIZE_API_MONGO_URI: mongodb://admin:pass@localhost:27017/admin
BANALIZE_API_SERVER_PORT: 5000
BANALIZE_API_FIREWALL_TYPE: iptables
BANALIZE_API_FIREWALL_CHAIN: FORWARD
BANALIZE_API_LOG_DEBUG: false
stop_signal: SIGTERM
stop_grace_period: 30s
volumes:
# Mount the docker socket to the container
# if you want to use the docker watcher
- /var/run/docker.sock:/var/run/docker.sock
# Mount any file or directory to the container
# if you want to use the file watcher
# - ./path/to/file/or/directory:/path/to/file/or/directory
web:
image: banalize-web:0.0.1-beta
container_name: banalize-web
restart: unless-stopped
network_mode: "host"
build:
context: .
dockerfile: apps/web/Dockerfile
depends_on:
- api
environment:
BANALIZE_WEB_API_SERVER_URL: http://localhost:5000
BANALIZE_WEB_BASE_URL: http://localhost:3000
BANALIZE_WEB_PORT: 3000
volumes:
mongodb-data: