48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
version: '3'
|
|
services:
|
|
web:
|
|
image: jeancloud/rapla
|
|
environment:
|
|
MYSQL_DATABASE: rapla_db
|
|
MYSQL_USER: rapla_db_user
|
|
MYSQL_PASSWORD: aPxqhmqUvqNBVXEoIt9cSZTXgmtqzFdgbTHeUMNeT2iL9ch8rN0z0iIGIc2rpMQZfdk87OZ45k3mf99tbT
|
|
MYSQL_HOST: db
|
|
volumes:
|
|
- /docker/raplacgr.jean-cloud.net/server.xml:/usr/local/tomcat/conf/server.xml
|
|
depends_on:
|
|
- db
|
|
restart: unless-stopped
|
|
networks:
|
|
default:
|
|
ipv4_address: $NET.100
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '0.50'
|
|
memory: 300M
|
|
|
|
db:
|
|
image: mysql:5.7
|
|
environment:
|
|
MYSQL_DATABASE: rapla_db
|
|
MYSQL_USER: rapla_db_user
|
|
MYSQL_PASSWORD: aPxqhmqUvqNBVXEoIt9cSZTXgmtqzFdgbTHeUMNeT2iL9ch8rN0z0iIGIc2rpMQZfdk87OZ45k3mf99tbT
|
|
MYSQL_RANDOM_ROOT_PASSWORD: yes
|
|
volumes:
|
|
- /data/raplacgr.jean-cloud.net/db:/var/lib/mysql
|
|
restart: unless-stopped
|
|
networks:
|
|
default:
|
|
ipv4_address: $NET.101
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '0.50'
|
|
memory: 300M
|
|
|
|
networks:
|
|
default:
|
|
ipam:
|
|
config:
|
|
- subnet: $NET.0/24
|