Last active
September 9, 2021 06:44
-
-
Save TSKGunGun/e06798c5a2bdc080b792653f5c029555 to your computer and use it in GitHub Desktop.
Django+MariaDB(adminer) 環境構築
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
db: | |
image: mariadb:10.6.4 | |
restart: always | |
environment: | |
MARIADB_ROOT_PASSWORD: password | |
ports: | |
- 3306:3306 | |
networks: | |
app-network: | |
ipv4_address: 172.100.0.2 | |
adminer: | |
image: adminer | |
restart: always | |
ports: | |
- 8088:8080 | |
networks: | |
app-network: | |
ipv4_address: 172.100.0.3 | |
app: | |
build: . | |
volumes: | |
- .:/app | |
tty: true | |
networks: | |
app-network: | |
ipv4_address: 172.100.0.5 | |
networks: | |
app-network: | |
ipam: | |
driver: default | |
config: | |
- subnet: 172.100.0.0/24 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment