nginx-proxy-manager/docker/dev/docker-compose.yaml

51 lines
1.4 KiB
YAML
Raw Normal View History

2021-02-04 11:15:31 -05:00
# docker-compose.yml
# RUN: ```docker-compose --env-file```
version: "3.7"
2021-02-04 14:03:17 -05:00
# 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
2021-02-04 11:15:31 -05:00
services:
2021-02-04 14:03:17 -05:00
# 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
2021-02-04 11:15:31 -05:00
npm:
build:
2021-02-04 14:03:17 -05:00
context: ../
dockerfile: ./dev/Dockerfile
# args:
# TARGETPLATFORM: arm64v8
2021-02-04 11:15:31 -05:00
image: npm:test # provide a name and tag for the image
container_name: npm
2021-02-04 14:03:17 -05:00
# 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