Skip to content

Instantly share code, notes, and snippets.

@TSKGunGun
Last active September 9, 2021 06:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TSKGunGun/e06798c5a2bdc080b792653f5c029555 to your computer and use it in GitHub Desktop.
Save TSKGunGun/e06798c5a2bdc080b792653f5c029555 to your computer and use it in GitHub Desktop.
Django+MariaDB(adminer) 環境構築
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