You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
947 B
YAML

version: "3.9"
services:
editor:
container_name: "editor_service"
build: ./build/
ports:
- "8080:8080"
restart: always
environment:
- MYSQL_HOST=10.42.42.7
- MYSQL_USER=editor
- MYSQL_PASSWORD=password
- MYSQL_DATABASE=editor
volumes:
- ./data/app:/app/.data
networks:
editor-network:
ipv4_address: 10.42.42.42
depends_on:
- editor-mysql
editor-mysql:
image: mysql:8.0.30
container_name: editor_mysql
restart: always
environment:
- MYSQL_ROOT_PASSWORD=some-root-password
- MYSQL_USER=editor
- MYSQL_PASSWORD=password
- MYSQL_DATABASE=editor
volumes:
- ./data/mysql:/var/lib/mysql
networks:
editor-network:
ipv4_address: 10.42.42.7
networks:
editor-network:
driver: bridge
ipam:
driver: default
config:
- subnet: 10.42.42.0/24
gateway: 10.42.42.1