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

47 lines
1018 B

version: "3.4"
services:
deb-rust:
container_name: deb-rust
restart: always
build: ../build/deb-rust
environment:
- RUST_BACKTRACE=1
- DATABASE_URL=mysql://rocket_user:rocket_pw@0.0.0.0:3306/rocket_db
ports:
- "5000:5000"
networks:
- rocket-db
#depends_on:
#- mariadb
#links:
#- "mariadb"
#mariadb:
#image: mariadb:latest
#container_name: mariadb
#hostname: mariadb
#restart: always
#volumes:
#- "mariadb_vol:/var/lib/mysql"
#ports:
#- "3306:3306"
#environment:
#- MYSQL_ROOT_PASSWORD=password
#- MYSQL_PASSWORD=rocket_pw
#- MYSQL_DATABASE=rocket_db
#- MYSQL_USER=rocket_user
#networks:
#- rocket-db
networks:
rocket-db:
driver: bridge
volumes:
maria-data:
driver: local
mariadb_vol: