-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (55 loc) · 1.66 KB
/
docker-compose.yml
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
version: "3.5"
services:
postgres:
container_name: postgres
image: postgres
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password}
PGDATA: /data/postgres
volumes:
- postgres:/data/postgres
restart: unless-stopped
api:
depends_on:
- "postgres"
container_name: xor-api
image: ghcr.io/dyrector-io/xor/api:2
restart: unless-stopped
user: "1000"
build:
context: api
expose:
- "3333"
ports:
- "3333:3333"
labels:
- "traefik.enable=true"
- "traefik.http.routers.xor-api.rule=Host(`js.xor.dyrectorio.com`) && PathPrefix(`/api`)"
- "traefik.http.routers.xor-api.entrypoints=websecure"
- "traefik.http.routers.xor-api.tls.certresolver=le"
- "traefik.http.middlewares.xor-strip.stripprefix.prefixes=/api"
- "traefik.http.routers.xor-api.middlewares=xor-strip"
environment:
DSN: ${DSN:-host=172.17.0.1 user=postgres password=password dbname=postgres port=5432 sslmode=disable}
ALLOWED_ORIGINS: ${ALLOWED_ORIGINS:-http://*, https://*"}
FREQ: ${FREQ}
METHOD: ${METHOD}
ui:
depends_on:
- "api"
container_name: xor-ui
image: ghcr.io/dyrector-io/xor/ui:2
restart: unless-stopped
user: "1000"
# volumes:
# - "./web/nginx/ui.conf:/etc/nginx/conf.d/ui.conf"
build:
context: web
labels:
- "traefik.enable=true"
- "traefik.http.routers.xor-ui.rule=Host(`js.xor.dyrectorio.com`) && PathPrefix(`/`)"
- "traefik.http.routers.xor-ui.entrypoints=websecure"
- "traefik.http.routers.xor-ui.tls.certresolver=le"
volumes:
postgres: