Fix MySQL container layout #7
@ -1,9 +1,9 @@
|
|||||||
services:
|
services:
|
||||||
mysql-build:
|
mysql-build:
|
||||||
image: "mysql/mysql-server:${MYSQL_VERSION}"
|
image: "mysql:${MYSQL_VERSION}"
|
||||||
profiles: ["build"]
|
profiles: ["build"]
|
||||||
build:
|
build:
|
||||||
context: "build-context/mysql"
|
context: "build-context"
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
args:
|
args:
|
||||||
MYSQL_VERSION: "${MYSQL_VERSION}"
|
MYSQL_VERSION: "${MYSQL_VERSION}"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
mysql:
|
mysql:
|
||||||
image: "mysql/mysql-server:${MYSQL_VERSION}"
|
image: "mysql:${MYSQL_VERSION}"
|
||||||
container_name: "mysql-${CONTEXT}"
|
container_name: "mysql-${CONTEXT}"
|
||||||
networks:
|
networks:
|
||||||
mysql-default:
|
mysql-default:
|
||||||
@ -24,4 +24,4 @@ networks:
|
|||||||
ipam:
|
ipam:
|
||||||
driver: default
|
driver: default
|
||||||
config:
|
config:
|
||||||
- subnet: 172.16.7.0/24
|
- subnet: ${SUBNET}
|
||||||
|
@ -27,3 +27,7 @@ CONTEXT=loft_ent
|
|||||||
# a Dockerfile
|
# a Dockerfile
|
||||||
# ---
|
# ---
|
||||||
# EXAMPLE_ARG_FROM_ENV_FILE=must_be_available_in_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