bill-server-go/docker-compose.yml

40 lines
796 B
YAML
Raw Normal View History

2023-05-05 20:27:33 +08:00
version: "3.9"
services:
fiber-application:
2023-06-01 20:25:54 +08:00
restart: on-failure
2023-05-05 20:27:33 +08:00
image: docker-mariadb-clean-arch:latest
build:
context: .
dockerfile: Dockerfile
target: prod
ports:
- 8080:8080
environment:
2023-06-01 20:25:54 +08:00
- ENV=prod
2023-05-05 20:27:33 +08:00
- API_USERID=1
- API_USERNAME=fiber
- API_PASSWORD=fiber
- JWT_SECRET=fiber
networks:
- application
2023-06-01 20:06:14 +08:00
# depends_on:
# - mariadb
2023-05-05 20:27:33 +08:00
command: ./docker-mariadb-clean-arch
2023-06-01 19:34:54 +08:00
# 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
#
2023-05-05 20:27:33 +08:00
networks:
application: