-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
36 lines (35 loc) · 1.07 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
services:
codex:
image: ghcr.io/aimsucks/codex:latest
container_name: codex
restart: unless-stopped
environment:
TZ: America/New_York
DATABASE_URL: ${DATABASE_URL}
AUTH_URL: ${AUTH_URL}
AUTH_SECRET: ${AUTH_SECRET}
AUTH_DISCORD_ID: ${AUTH_DISCORD_ID}
AUTH_DISCORD_SECRET: ${AUTH_DISCORD_SECRET}
S3_ENDPOINT: ${S3_ENDPOINT}
S3_PORT: ${S3_PORT}
S3_URL: ${S3_URL}
S3_ACCESS_KEY: ${S3_ACCESS_KEY}
S3_SECRET_KEY: ${S3_SECRET_KEY}
S3_BUCKET_NAME: ${S3_BUCKET_NAME}
networks: [ proxy, internal ]
labels:
traefik.enable: true
traefik.http.routers.codex.rule: Host(`${CODEX_URL}`)
traefik.http.routers.codex.entrypoints: websecure
traefik.http.routers.codex.tls: true
traefik.http.routers.codex.tls.certresolver: letsencrypt
traefik.http.services.codex.loadbalancer.server.port: 3000
command: >
/bin/sh -c "npx prisma migrate deploy && pnpm run start"
networks:
proxy:
name: proxy
external: true
internal:
name: internal
external: true