-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
56 lines (53 loc) · 1.24 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
version: '3.5'
services:
ots-share-build:
build:
context: .
dockerfile: Dockerfile
container_name: ots-share-build
volumes:
- .:/app
logging:
driver: json-file
ots-share-run:
build:
context: .
container_name: ots-share-run
environment:
- DEV_PORT=${DEV_PORT:-9898}
- DB_URL=mongodb://ots-share-mongo-local/ots-share
- PURGE_TRIGGER_INTERVAL=60000
command: sleep infinity
ports:
- '${SERVER_PORT:-8282}:80'
- '${DEV_PORT:-9898}:${DEV_PORT:-9898}'
volumes:
- .:/app
logging:
driver: json-file
depends_on:
- ots-share-mongo-local
links:
- ots-share-mongo-local
ots-share-run-no-db:
build:
context: .
container_name: ots-share-run-db
environment:
# - DB_URL=${DB_URL:-mongodb://ots-share-mongo-local/ots-share}
- DB_URL=
- DEV_PORT=${DEV_PORT:-9898}
- PURGE_TRIGGER_INTERVAL=60000
command: sleep infinity
ports:
- '${SERVER_PORT:-8282}:80'
- '${DEV_PORT:-9898}:${DEV_PORT:-9898}'
volumes:
- .:/app
logging:
driver: json-file
ots-share-mongo-local:
image: mongo:4.2
container_name: ots-share-mongo-local
ports:
- '27017:27017'