-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
57 lines (54 loc) · 1.35 KB
/
docker-compose.yaml
File metadata and controls
57 lines (54 loc) · 1.35 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
services:
tesp-api:
build:
context: ./
dockerfile: docker/tesp_api/Dockerfile
target: development
image: tesp-api
environment:
- CONTAINER_TYPE=singularity # Set to "docker", "singularity", or "both"
container_name: tesp-api
privileged: true
ports:
- "8080:8080"
depends_on:
- tesp-db
volumes:
- ./:/app
- /opt/pysetup/files/staging/:/opt/pysetup/files/staging/
# extra_hosts:
# - "host.docker.internal:host-gateway"
tesp-db:
image: mongo:latest
container_name: tesp-db
volumes:
- ./docker/mongodb/data:/data/db
environment:
- MONGO_INITDB_DATABASE=tesp
ports:
- "8081:27017"
deploy:
replicas: 1
placement:
max_replicas_per_node: 1
pulsar_rest:
build:
context: ./docker/pulsar_rest
dockerfile: Dockerfile
target: development
image: pulsar_rest
profiles: ["pulsar"]
container_name: pulsar-rest
privileged: true
expose:
- "8913"
volumes:
- ./docker/pulsar_rest/app.yml:/opt/pysetup/app.yml
- /opt/pysetup/files/staging/:/opt/pysetup/files/staging/
- /var/run/docker.sock:/var/run/docker.sock
# Some cloud providers may require a lower MTU!
networks:
default:
driver: bridge
driver_opts:
com.docker.network.driver.mtu: 1442