-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (56 loc) · 1.24 KB
/
docker-compose.yml
File metadata and controls
56 lines (56 loc) · 1.24 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
services:
server:
build:
context: ./server
dockerfile: Dockerfile
no_cache: false
image: energy-server
container_name: energy-server
ports:
- 8000:8000
environment:
- FINGRID_API_KEY=${FINGRID_API_KEY}
- ENVIRONMENT=${ENVIRONMENT}
- ALLOWING_ORIGIN=${ALLOWING_ORIGIN}
- CACHE_TTL=${CACHE_TTL}
- RATE_LIMIT=${RATE_LIMIT}
user: nonroot
read_only: true
privileged: false
tmpfs:
- /tmp:rw
client:
build:
context: ./client
dockerfile: Dockerfile
no_cache: false
args:
API_URL: ${VITE_API_URL}
depends_on:
server:
condition: service_started
restart: true
image: energy-client
container_name: energy-client
ports:
- 3000:3000
user: nginx
read_only: true
privileged: false
tmpfs:
- /tmp:rw
tests:
build:
context: .
dockerfile: ./utility/Dockerfile
no_cache: false
image: energy-tests
container_name: energy-tests
read_only: false
privileged: true
environment:
- CI=true
volumes:
- ./client/tests/playwright:/app/tests/playwright
- ./client/test-results:/app/test-results
command: ["npm", "run", "playwright"]