Files
decomp.me/docker-compose.yaml
2024-04-14 13:09:48 +01:00

176 lines
3.7 KiB
YAML

version: '2'
services:
postgres:
image: postgres:13
environment:
POSTGRES_USER: decompme
POSTGRES_PASSWORD: decompme
ports:
- "5432:5432"
volumes:
- ./postgres:/var/lib/postgresql/data
backend:
build:
context: backend
deploy:
restart_policy:
condition: any
delay: 5s
env_file:
- backend/docker.dev.env
ports:
- "8000:8000"
volumes:
- ./backend:/backend
frontend:
build: frontend
environment:
API_BASE: /api
INTERNAL_API_BASE: http://backend:8000/api
ports:
- "8080:8080"
volumes:
- ./frontend:/frontend
- .env:/.env
nginx:
image: nginx:1.22-alpine
ports:
- "80:80"
volumes:
- ./nginx:/etc/nginx/conf.d
- ./backend/media:/media
# TODO: It's easier to work with 1 platform while developing
gba:
extends:
file: docker-platform-template.yaml
service: platform
build:
dockerfile: ./docker/gba.Dockerfile
args:
SUPPORTED_PLATFORMS: "gba"
ports:
- "9001:9000"
gc_wii:
extends:
file: docker-platform-template.yaml
service: platform
build:
dockerfile: ./docker/gc_wii.Dockerfile
args:
SUPPORTED_PLATFORMS: "gc_wii"
ports:
- "9002:9000"
macosx:
extends:
file: docker-platform-template.yaml
service: platform
build:
dockerfile: ./docker/macosx.Dockerfile
args:
SUPPORTED_PLATFORMS: "macosx"
ports:
- "9003:9000"
msdos:
extends:
file: docker-platform-template.yaml
service: platform
build:
dockerfile: ./docker/msdos.Dockerfile
args:
SUPPORTED_PLATFORMS: "msdos"
ports:
- "9004:9000"
n3ds:
extends:
file: docker-platform-template.yaml
service: platform
build:
dockerfile: ./docker/n3ds.Dockerfile
args:
SUPPORTED_PLATFORMS: "n3ds"
ports:
- "9005:9000"
n64:
extends:
file: docker-platform-template.yaml
service: platform
build:
dockerfile: ./docker/n64.Dockerfile
args:
SUPPORTED_PLATFORMS: "irix,n64"
ports:
- "9006:9000"
nds_arm9:
extends:
file: docker-platform-template.yaml
service: platform
build:
dockerfile: ./docker/nds_arm9.Dockerfile
args:
SUPPORTED_PLATFORMS: "nds_arm9"
ports:
- "9007:9000"
ps1:
extends:
file: docker-platform-template.yaml
service: platform
build:
dockerfile: ./docker/ps1.Dockerfile
args:
SUPPORTED_PLATFORMS: "ps1"
ports:
- "9008:9000"
ps2:
extends:
file: docker-platform-template.yaml
service: platform
build:
dockerfile: ./docker/ps2.Dockerfile
args:
SUPPORTED_PLATFORMS: "ps2"
ports:
- "9009:9000"
psp:
extends:
file: docker-platform-template.yaml
service: platform
build:
dockerfile: ./docker/psp.Dockerfile
args:
SUPPORTED_PLATFORMS: "psp"
ports:
- "9010:9000"
saturn:
extends:
file: docker-platform-template.yaml
service: platform
build:
dockerfile: ./docker/saturn.Dockerfile
args:
SUPPORTED_PLATFORMS: "saturn"
ports:
- "9011:9000"
switch:
extends:
file: docker-platform-template.yaml
service: platform
build:
dockerfile: ./docker/switch.Dockerfile
args:
SUPPORTED_PLATFORMS: "switch"
ports:
- "9012:9000"
win32:
extends:
file: docker-platform-template.yaml
service: platform
build:
dockerfile: ./docker/win32.Dockerfile
args:
SUPPORTED_PLATFORMS: "win32"
ports:
- "9013:9000"