37 lines
547 B
YAML
37 lines
547 B
YAML
version: "3.7"
|
|
name: "onyx"
|
|
|
|
# Services
|
|
services:
|
|
|
|
# App
|
|
api:
|
|
build: .
|
|
env_file:
|
|
- ./.env
|
|
- ../.env
|
|
restart: unless-stopped
|
|
command: ["run-server"]
|
|
stdin_open: true
|
|
tty: true
|
|
ports:
|
|
- ${VPORT}:${VPORT}
|
|
- ${DEBUG_PORT}:${DEBUG_PORT}
|
|
environment:
|
|
- VIRTUAL_HOST=${VHOST}
|
|
- VIRTUAL_PORT=${VPORT}
|
|
networks:
|
|
- app
|
|
- default
|
|
volumes:
|
|
- ../:/code/
|
|
|
|
# Docker Networks
|
|
networks:
|
|
default:
|
|
name: nginx-proxy
|
|
external: true
|
|
app:
|
|
driver: bridge
|
|
|