-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml.example
More file actions
39 lines (37 loc) · 1.15 KB
/
Copy pathdocker-compose.yml.example
File metadata and controls
39 lines (37 loc) · 1.15 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
version: "3.8"
services:
server:
build:
context: .
dockerfile: aperio-server/Dockerfile
ports:
- "8080:8080"
environment:
- PORT=8080
- APERIO_SERVER_TOKEN=supersecrettoken123
- APERIO_DASHBOARD=1
- APERIO_DATA_DIR=/app/data
- LOG_LEVEL=debug
volumes:
# Persist dynamic API tokens (and other server state) across restarts.
# Without this volume, dashboard-created tokens are lost on container recreation.
- ./data:/app/data
restart: unless-stopped
client:
build:
context: .
dockerfile: aperio-client/Dockerfile
environment:
- APERIO_SERVER_TOKEN=supersecrettoken123
# Connect to the server container within the compose network
- APERIO_SERVER_URL=http://server:8080
# By default, attempt to forward to the host machine's port 80.
# On Windows/macOS, use host.docker.internal to access host machine services.
- APERIO_TARGET=http://host.docker.internal:80
- APERIO_PASS_HOSTNAME=0
- LOG_LEVEL=debug
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- server
restart: unless-stopped