mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
fix /docker/dev/docker-compose.yaml
This commit is contained in:
parent
63a71afbc8
commit
15c4857a4b
@ -2,48 +2,50 @@
|
||||
# RUN: ```docker-compose --env-file```
|
||||
version: "3.7"
|
||||
|
||||
secrets:
|
||||
# paths assume the .secrets folder is sibling depth to folder where docker-compose resides
|
||||
DB_ROOT_PWD:
|
||||
file: ../../../homelab-setup/docker_secrets/db_root_pwd.txt
|
||||
MYSQL_PWD:
|
||||
file: ../../../homelab-setup/docker_secrets/mysql_pwd.txt
|
||||
# secrets:
|
||||
# # paths assume the .secrets folder is sibling depth to folder where docker-compose resides
|
||||
# DB_ROOT_PWD:
|
||||
# file: ../../../homelab-setup/docker_secrets/db_root_pwd.txt
|
||||
# MYSQL_PWD:
|
||||
# file: ../../../homelab-setup/docker_secrets/mysql_pwd.txt
|
||||
|
||||
services:
|
||||
mariadb:
|
||||
image: mariadb:test
|
||||
container_name: mariadb
|
||||
secrets:
|
||||
- DB_ROOT_PWD
|
||||
- MYSQL_PWD
|
||||
environment:
|
||||
# MYSQL_ROOT_PASSWORD: "npm"
|
||||
MYSQL_ROOT_PASSWORD__FILE: /run/secrets/DB_ROOT_PWD
|
||||
MYSQL_DATABASE: "npm"
|
||||
MYSQL_USER: "npm"
|
||||
# MYSQL_PASSWORD: "npm"
|
||||
MYSQL_PASSWORD__FILE: /run/secrets/MYSQL_PWD
|
||||
volumes:
|
||||
- ./data/mysql:/var/lib/mysql
|
||||
# mariadb:
|
||||
# image: mariadb:test
|
||||
# container_name: mariadb
|
||||
# secrets:
|
||||
# - DB_ROOT_PWD
|
||||
# - MYSQL_PWD
|
||||
# environment:
|
||||
# # MYSQL_ROOT_PASSWORD: "npm"
|
||||
# MYSQL_ROOT_PASSWORD__FILE: /run/secrets/DB_ROOT_PWD
|
||||
# MYSQL_DATABASE: "npm"
|
||||
# MYSQL_USER: "npm"
|
||||
# # MYSQL_PASSWORD: "npm"
|
||||
# MYSQL_PASSWORD__FILE: /run/secrets/MYSQL_PWD
|
||||
# volumes:
|
||||
# - ./data/mysql:/var/lib/mysql
|
||||
|
||||
npm:
|
||||
build:
|
||||
context: ../../
|
||||
dockerfile: ./docker/Dockerfile
|
||||
context: ../
|
||||
dockerfile: ./dev/Dockerfile
|
||||
# args:
|
||||
# TARGETPLATFORM: arm64v8
|
||||
image: npm:test # provide a name and tag for the image
|
||||
container_name: npm
|
||||
secrets:
|
||||
- MYSQL_PWD
|
||||
environment:
|
||||
DISABLE_IPV6: 'true'
|
||||
DB_MYSQL_HOST: "mariadb"
|
||||
DB_MYSQL_PORT: 3306
|
||||
MYSQL_DATABASE: "npm"
|
||||
MYSQL_USER: "npm"
|
||||
# MYSQL_PASSWORD: "npm"
|
||||
MYSQL_PASSWORD__FILE: /run/secrets/MYSQL_PWD
|
||||
volumes:
|
||||
- ./data/npm:/data
|
||||
- ./data/letsencrypt:/etc/letsencrypt
|
||||
depends_on:
|
||||
- mariadb
|
||||
# secrets:
|
||||
# - MYSQL_PWD
|
||||
# environment:
|
||||
# DISABLE_IPV6: 'true'
|
||||
# DB_MYSQL_HOST: "mariadb"
|
||||
# DB_MYSQL_PORT: 3306
|
||||
# MYSQL_DATABASE: "npm"
|
||||
# MYSQL_USER: "npm"
|
||||
# # MYSQL_PASSWORD: "npm"
|
||||
# MYSQL_PASSWORD__FILE: /run/secrets/MYSQL_PWD
|
||||
# volumes:
|
||||
# - ./data/npm:/data
|
||||
# - ./data/letsencrypt:/etc/letsencrypt
|
||||
# depends_on:
|
||||
# - mariadb
|
Loading…
Reference in New Issue
Block a user