-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (47 loc) · 1.23 KB
/
docker-compose.yml
File metadata and controls
50 lines (47 loc) · 1.23 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
services:
smaple:
build:
dockerfile: Dockerfile.server
depends_on:
- mimic
environment:
- BASE_URL=http://mimic:${PORT:-8080}
volumes:
- './ssl:/app/ssl'
- './prefabs:/app/prefabs'
- './server/src:/app/src'
entrypoint: ["deno", "task", "sample"]
networks:
- mimic
mimic:
build:
dockerfile: Dockerfile.server
ports:
- '8080:${PORT:-8080}'
environment:
MIMIC_PORT: ${PORT:-8080}
MIMIC_ENABLE_SSL: ${ENABLE_SSL}
MIMIC_TLS_KEY: '/app/ssl/localhost+1-key.pem'
MIMIC_TLS_CERT: '/app/ssl/localhost+1.pem'
MIMIC_PARTIALS_DIRECTORY: /app/prefabs/${PREFAB}/partials
MIMIC_MOCKS_DIRECTORY: /app/prefabs/${PREFAB}/mocks
MIMIC_GRAPHQL_SCHEMA: /app/prefabs/${PREFAB}/schema.graphql
DENO_TLS_CA_STORE: system
volumes:
- './ssl:/app/ssl'
- './prefabs:/app/prefabs'
- './server/src:/app/src'
networks:
- mimic
command: ['--cert', '/app/ssl/rootCA.pem', "--"]
dashboard:
build:
dockerfile: Dockerfile.dashboard
environment:
VITE_API_URL: "http://localhost:${PORT:-8080}/_/api"
volumes:
- './dashboard/src:/app/src'
ports:
- "9090:9090"
networks:
mimic: