-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
48 lines (48 loc) · 1.37 KB
/
docker-compose.yaml
File metadata and controls
48 lines (48 loc) · 1.37 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
version: "3.9"
services:
playground-api:
image: playground-api
build:
context: .
dockerfile: api.Dockerfile
ports:
- "17001:8000"
volumes:
- ./api:/playground/api
environment:
- PLAYGROUND_APP_ENVIRONMENT=${PLAYGROUND_APP_ENVIRONMENT}
- PLAYGROUND_LOG_LEVEL=${PLAYGROUND_LOG_LEVEL}
- PLAYGROUND_MONGO_HOST=${PLAYGROUND_MONGO_HOST}
- PLAYGROUND_MONGO_PORT=${PLAYGROUND_MONGO_PORT}
- PLAYGROUND_MONGO_DB=${PLAYGROUND_MONGO_DB}
- PLAYGROUND_NEIS_API_KEY=${PLAYGROUND_NEIS_API_KEY}
- PLAYGROUND_ENABLE_CORS=${PLAYGROUND_ENABLE_CORS}
- PLAYGROUND_CORS_ORIGINS=${PLAYGROUND_CORS_ORIGINS}
depends_on:
mongodb:
condition: service_started
playground-web:
container_name: playground-web
ports:
- "17002:5173"
build:
context: .
dockerfile: web.Dockerfile
volumes:
- ./web/src:/playground/web/src
environment:
- VITE_PLAYGROUND_SERVER_SIDE_API_URL=${VITE_PLAYGROUND_SERVER_SIDE_API_URL}
- VITE_PLAYGROUND_CLIENT_SIDE_API_URL=${VITE_PLAYGROUND_CLIENT_SIDE_API_URL}
depends_on:
playground-api:
condition: service_started
playground-proxy:
container_name: playground-proxy
build:
context: .
dockerfile: nginx.Dockerfile
ports:
- "17000:80"
depends_on:
- playground-api
- playground-web