40 lines
770 B
YAML
40 lines
770 B
YAML
version: "3.9"
|
|
services:
|
|
fiber-application:
|
|
restart: on-failure
|
|
image: bill-server:latest
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
target: prod
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
- ENV=prod
|
|
- API_USERID=1
|
|
- API_USERNAME=fiber
|
|
- API_PASSWORD=fiber
|
|
- JWT_SECRET=fiber
|
|
networks:
|
|
- application
|
|
# depends_on:
|
|
# - mariadb
|
|
command: ./bill-server
|
|
|
|
# mariadb:
|
|
# image: mariadb:10.6.3
|
|
# restart: always
|
|
# volumes:
|
|
# - ./scripts/billMigrations.sql:/docker-entrypoint-initdb.d/1.sql
|
|
# expose:
|
|
# - 3306
|
|
# ports:
|
|
# - 3306:3306
|
|
# environment:
|
|
# - MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=true
|
|
# networks:
|
|
# - application
|
|
#
|
|
networks:
|
|
application:
|