Merge pull request 'Fix MySQL container layout' (#7) from 6-vaultenv-with-mysql into master
Reviewed-on: #7
This commit is contained in:
commit
b6a556a2e5
@ -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}"
|
||||
|
@ -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}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user