44 lines
770 B
YAML
44 lines
770 B
YAML
services:
|
|
db:
|
|
image: mariadb
|
|
networks:
|
|
- internal
|
|
ports:
|
|
- 3306:3306
|
|
environment:
|
|
MYSQL_DATABASE: gawa
|
|
MYSQL_USER: gawa
|
|
MYSQL_PASSWORD: changethisforprod
|
|
MYSQL_ROOT_PASSWORD: root
|
|
volumes:
|
|
- ./db/data:/var/lib/mysql
|
|
web:
|
|
build: ./web
|
|
command: python manage.py runserver 0.0.0.0:80
|
|
volumes:
|
|
- ./gawa:/app
|
|
ports:
|
|
- 80:80
|
|
environment:
|
|
- MARIADB_NAME=gawa
|
|
- MARIADB_USER=gawa
|
|
- MARIADB_PASSWORD=changethisforprod
|
|
networks:
|
|
- internal
|
|
depends_on:
|
|
- db
|
|
phpmyadmin:
|
|
image: phpmyadmin
|
|
networks:
|
|
- internal
|
|
ports:
|
|
- "127.0.0.1:8082:80"
|
|
environment:
|
|
- PMA_HOST=db
|
|
|
|
|
|
networks:
|
|
internal:
|
|
driver: bridge
|
|
|