53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
volumes:
|
|
music_downloads: {}
|
|
# These 2 are just for "nuxtjs-launcher"
|
|
# If you use a normal nodejs build image, you don't need them
|
|
#nuxt_internal: {}
|
|
#nuxt_server: {}
|
|
|
|
networks:
|
|
api_nuxt:
|
|
driver: "bridge"
|
|
#bridge:
|
|
# external: true # Allow LAN access
|
|
services:
|
|
fastapi:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.fastapi
|
|
networks:
|
|
- api_nuxt
|
|
#- bridge # allow external access
|
|
volumes:
|
|
- music_downloads:/tmp/downloads
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
environment:
|
|
- DB_MODE=mysql
|
|
- MYSQL_HOST=host.docker.internal
|
|
- MYSQL_USER=yt2mp3_nuxt
|
|
- MYSQL_PASSWORD=blowfish
|
|
- MYSQL_DB=yt2mp3_nuxt
|
|
|
|
nuxt:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.nuxt
|
|
#image: nuxtjs-launcher
|
|
networks:
|
|
- api_nuxt
|
|
ports:
|
|
- "64002:3030" # just for the admin GUI
|
|
- "6903:3000"
|
|
environment:
|
|
- FASTAPI_URL=http://fastapi:8000
|
|
- DOWNLOAD_FOLDER=/tmp/downloads
|
|
- NUXT_SESSION_PASSWORD=bc7d4da7d5f64d47aa75da92bed68cd8
|
|
volumes:
|
|
- music_downloads:/tmp/downloads
|
|
# These 3 are just for "nuxtjs-launcher"
|
|
# - ./:/app
|
|
#- nuxt_server:/server
|
|
#- nuxt_internal:/internal
|
|
|
|
|