-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yml
More file actions
87 lines (84 loc) · 2.84 KB
/
compose.dev.yml
File metadata and controls
87 lines (84 loc) · 2.84 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
name: rusty-links-${USER}
services:
postgres:
image: postgres:17-alpine
container_name: dev-rusty-links-postgres-${USER}
restart: unless-stopped
environment:
POSTGRES_USER: ${DB_USERNAME:-rustylinks}
POSTGRES_PASSWORD: ${DB_PASSWORD:-changeme_secure_password_here}
POSTGRES_DB: ${DB_NAME:-rustylinks}
volumes:
- postgres_data:/var/lib/postgresql/data
expose:
- "5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready --username=${DB_USERNAME:-rustylinks}"]
interval: 5s
timeout: 5s
retries: 5
app:
build:
context: .
args:
FEATURES: ${FEATURES:-standalone}
container_name: dev-rusty-links-app-${USER}
restart: unless-stopped
volumes:
- ./src:/app/src
- ./assets:/app/assets
- ./migrations:/app/migrations
- ./Cargo.toml:/app/Cargo.toml
- ./Cargo.lock:/app/Cargo.lock
- ./Dioxus.toml:/app/Dioxus.toml
- ./build.rs:/app/build.rs
- ./.git:/app/.git:ro
- ./static:/app/static
- cargo_home:/root/.cargo
- dx_out:/app/target/dx
- cargo_target_server:/app/target/server-dev
- cargo_target_wasm:/app/target/wasm-dev
env_file: .env
environment:
RUST_LOG: debug
RUST_BACKTRACE: 1
DATABASE_URL: postgresql://${DB_USERNAME:-rustylinks}:${DB_PASSWORD:-changeme_secure_password_here}@postgres/${DB_NAME:-rustylinks}
SETUP_DEFAULT_ADMIN_EMAIL: ${SETUP_DEFAULT_ADMIN_EMAIL:-admin@a8n.run}
SETUP_DEFAULT_ADMIN_PASSWORD: ${SETUP_DEFAULT_ADMIN_PASSWORD:-admin1234}
SETUP_DEFAULT_ADMIN_NAME: ${SETUP_DEFAULT_ADMIN_NAME:-Admin}
HOST_URL: https://${USER}-links.a8n.run
OIDC_ISSUER: https://${USER}-api.a8n.run
OIDC_AUDIENCE: https://links.a8n.run/api
OIDC_REDIRECT_URI: https://${USER}-links.a8n.run/oauth2/callback
OIDC_POST_LOGOUT_REDIRECT_URI: https://${USER}-links.a8n.run/
expose:
- "4002"
networks:
- default
- network-traefik-public
depends_on:
postgres:
condition: service_healthy
labels:
- "traefik.enable=true"
- "traefik.docker.network=network-traefik-public"
- "traefik.http.routers.links-${USER}.rule=Host(`${USER}-links.a8n.run`)"
- "traefik.http.routers.links-${USER}.service=links-${USER}@docker"
- "traefik.http.routers.links-${USER}.entrypoints=web-secure"
- "traefik.http.routers.links-${USER}.tls.certresolver=cert-cloudflare"
- "traefik.http.services.links-${USER}.loadbalancer.server.port=4002"
volumes:
cargo_home:
name: rusty-links-cargo-${USER}
dx_out:
name: rusty-links-dx-${USER}
cargo_target_server:
name: rusty-links-target-server-${USER}
cargo_target_wasm:
name: rusty-links-target-wasm-${USER}
postgres_data:
name: rusty-links-postgres-${USER}
networks:
network-traefik-public:
external: true