forked from tdjsnelling/sqtracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
64 lines (63 loc) · 1.43 KB
/
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
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
version: "3.9"
services:
# traefik:
# image: "traefik:v2.5"
# container_name: "sq_traefik"
# command:
# - "--api.insecure=true"
# - "--providers.file=true"
# - "--providers.file.filename=/config/traefik.yml"
# - "--entrypoints.web.address=:80"
# - "--entryPoints.web.proxyProtocol.insecure"
# - "--entryPoints.web.forwardedHeaders.insecure"
# restart: always
# ports:
# - "80:80"
# - "8080:8080"
# volumes:
# - "/var/run/docker.sock:/var/run/docker.sock:ro"
# - ./traefik.yml:/config/traefik.yml
nginx:
image: "nginx:latest"
container_name: "sq_nginx"
restart: always
ports:
- "80:80"
external_links:
- sq_api
- sq_client
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
database:
container_name: sq_mongodb
image: mongo:6.0
volumes:
- ./data:/data/db
api:
container_name: sq_api
build:
context: ./api
dockerfile: Dockerfile
restart: always
ports:
- "127.0.0.1:3001:3001"
volumes:
- type: bind
source: ./config.js
target: /sqtracker/config.js
depends_on:
- database
client:
container_name: sq_client
build:
context: ./client
dockerfile: Dockerfile
restart: always
ports:
- "127.0.0.1:3000:3000"
volumes:
- type: bind
source: ./config.js
target: /sqtracker/config.js
depends_on:
- api