This repository was archived by the owner on Jul 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
70 lines (64 loc) · 1.46 KB
/
docker-compose.dev.yml
File metadata and controls
70 lines (64 loc) · 1.46 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: "3.4"
services:
app:
container_name: openpasteapp
restart: unless-stopped
image: openpasteapp:latest
build:
context: ./app
dockerfile: dockerfile
env_file: ./config/development.env
command: ["yarn", "run", "dev"]
volumes:
- ./app:/var/server
- /var/server/node_modules
ports:
- "8101:80"
depends_on:
- mongodb
healthcheck:
test: ["CMD", "curl", "-sSG", "http://localhost:80/healthcheck"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
networks:
openpasteNet:
ipv4_address: 172.11.0.2
mongodb:
container_name: openpastemongodb
restart: unless-stopped
image: mongo
volumes:
- ./_mongodbDev:/data/db
healthcheck:
test: ["CMD", "echo", "'db.runCommand(\"ping\").ok'", "|", "mongodb", "localhost:27017/test", "--quiet"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
networks:
openpasteNet:
ipv4_address: 172.11.0.4
mongopanel:
container_name: openpastemongopanel
restart: unless-stopped
image: mongo-express
env_file: ./config/mongo-express.env
ports:
- "83:8081"
links:
- mongodb
depends_on:
- mongodb
networks:
openpasteNet:
ipv4_address: 172.11.0.5
networks:
openpasteNet:
driver: bridge
ipam:
driver: default
config:
-
subnet: 172.11.0.0/24