added prod config
This commit is contained in:
1 parent
b9b15152bc
commit
3b97a57598
2 files changed
+67
-11
No files matched your search
@@ -0,0 +1,50 @@
|
||||
services:
|
||||
backend:
|
||||
image: golang:1.24
|
||||
working_dir: /backend
|
||||
ports:
|
||||
- "8082:8080"
|
||||
depends_on:
|
||||
- db
|
||||
environment:
|
||||
- DATABASE_URL=${DATABASE_URL}
|
||||
- ODH_LICENCE_KEY=${ODH_LICENCE_KEY}
|
||||
- TZ=Europe/Berlin
|
||||
volumes:
|
||||
- ./backend:/backend
|
||||
command: go run cmd/server/main.go
|
||||
restart: unless-stopped
|
||||
db:
|
||||
image: postgres:14
|
||||
environment:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: postgres
|
||||
POSTGRES_DB: postgres
|
||||
# ports:
|
||||
# - "5432:5432"
|
||||
volumes:
|
||||
- ./pgdata:/var/lib/postgresql/data
|
||||
restart: unless-stopped
|
||||
|
||||
frontend:
|
||||
build: ./frontend
|
||||
working_dir: /app
|
||||
ports:
|
||||
- "8083:8000"
|
||||
depends_on:
|
||||
- db
|
||||
environment:
|
||||
- DATABASE_URL=${DATABASE_URL}
|
||||
volumes:
|
||||
- ./frontend:/app
|
||||
- ./backend/public/storage:/app/public/storage
|
||||
command: sh -c "composer install --no-interaction && php -S 0.0.0.0:8000 -t public"
|
||||
restart: unless-stopped
|
||||
|
||||
admin:
|
||||
image: adminer
|
||||
restart: always
|
||||
depends_on:
|
||||
- db
|
||||
ports:
|
||||
- 5433:8080
|
||||
Reference in new issue
Block a user