Merge pull request 'Fix MySQL container layout' (#7) from 6-vaultenv-with-mysql into master

Reviewed-on: #7
This commit is contained in:
hygienic-books 2023-01-13 01:50:45 +00:00
commit b6a556a2e5
3 changed files with 8 additions and 4 deletions

View File

@ -1,9 +1,9 @@
services:
mysql-build:
image: "mysql/mysql-server:${MYSQL_VERSION}"
image: "mysql:${MYSQL_VERSION}"
profiles: ["build"]
build:
context: "build-context/mysql"
context: "build-context"
dockerfile: Dockerfile
args:
MYSQL_VERSION: "${MYSQL_VERSION}"

View File

@ -1,6 +1,6 @@
services:
mysql:
image: "mysql/mysql-server:${MYSQL_VERSION}"
image: "mysql:${MYSQL_VERSION}"
container_name: "mysql-${CONTEXT}"
networks:
mysql-default:
@ -24,4 +24,4 @@ networks:
ipam:
driver: default
config:
- subnet: 172.16.7.0/24
- subnet: ${SUBNET}

View File

@ -27,3 +27,7 @@ CONTEXT=loft_ent
# a Dockerfile
# ---
# EXAMPLE_ARG_FROM_ENV_FILE=must_be_available_in_dockerfile
SUBNET=10.10.10.10/24