first commit
This commit is contained in:
commit
2a1854ab08
120 files changed
+11300
No files matched your search
@@ -0,0 +1,59 @@
|
||||
name: at-transit
|
||||
|
||||
networks:
|
||||
internal-network:
|
||||
external: true
|
||||
|
||||
services:
|
||||
backend:
|
||||
build:
|
||||
context: ./backend
|
||||
image: at-transit-backend:latest
|
||||
container_name: at-transit-backend
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- internal-network
|
||||
extra_hosts:
|
||||
- "host-gateway:host-gateway"
|
||||
env_file:
|
||||
- .env.at-transit
|
||||
environment:
|
||||
STORAGE_BUCKET: transit
|
||||
STORAGE_PUBLIC_BASE: /files
|
||||
BIND_ADDR: 0.0.0.0:${BACKEND_PORT}
|
||||
RUST_LOG: info,sqlx=warn,tower_http=info
|
||||
CORS_ALLOW_ORIGINS: "*"
|
||||
SEED_ASSETS_DIR: /seed-assets
|
||||
volumes:
|
||||
- ./storage/seed-assets:/seed-assets:ro
|
||||
ports:
|
||||
- "${BACKEND_PORT}:${BACKEND_PORT}"
|
||||
|
||||
frontend:
|
||||
build:
|
||||
context: ./frontend
|
||||
args:
|
||||
NEXT_PUBLIC_API_BASE: /api
|
||||
NEXT_PUBLIC_FILES_BASE: /files
|
||||
BACKEND_INTERNAL_URL: http://at-transit-backend:${BACKEND_PORT}
|
||||
INTERNAL_API_BASE: http://at-transit-backend:${BACKEND_PORT}/api
|
||||
STORAGE_INTERNAL_URL: ${STORAGE_URL}
|
||||
STORAGE_BUCKET_PATH: /buckets/transit
|
||||
image: at-transit-frontend:latest
|
||||
container_name: at-transit-frontend
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- internal-network
|
||||
extra_hosts:
|
||||
- "host-gateway:host-gateway"
|
||||
environment:
|
||||
NEXT_PUBLIC_API_BASE: /api
|
||||
NEXT_PUBLIC_FILES_BASE: /files
|
||||
HOSTNAME: 0.0.0.0
|
||||
INTERNAL_API_BASE: http://at-transit-backend:${BACKEND_PORT}/api
|
||||
BACKEND_INTERNAL_URL: http://at-transit-backend:${BACKEND_PORT}
|
||||
STORAGE_INTERNAL_URL: ${STORAGE_URL}
|
||||
STORAGE_BUCKET_PATH: /buckets/transit
|
||||
PORT: 3000
|
||||
ports:
|
||||
- "${FRONTEND_PORT}:3000"
|
||||
Reference in new issue
Block a user