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.
62 lines
1.4 KiB
62 lines
1.4 KiB
1 year ago
|
version: "3"
|
||
|
networks:
|
||
|
network:
|
||
|
driver: bridge
|
||
|
ipam:
|
||
|
config:
|
||
|
- subnet: 178.18.0.0/24
|
||
|
services:
|
||
|
|
||
|
mysql-database:
|
||
|
image: mysql
|
||
|
container_name: mysql-database
|
||
|
# NOTE: use of "mysql_native_password" is not recommended: https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password
|
||
|
# (this is just an example, not intended to be a production configuration)
|
||
|
command: --default-authentication-plugin=mysql_native_password
|
||
|
restart: always
|
||
|
environment:
|
||
|
MYSQL_ROOT_PASSWORD: Pompom.21
|
||
|
MYSQL_DATABASE: prudencetest
|
||
|
volumes:
|
||
|
- ./Dump/:/docker-entrypoint-initdb.d/
|
||
|
- ./Database_Mysql/:/var/lib/mysql/
|
||
|
ports:
|
||
|
- 3400:3306
|
||
|
networks:
|
||
|
network:
|
||
|
ipv4_address: 178.18.0.2
|
||
|
adminer:
|
||
|
image: adminer
|
||
|
restart: always
|
||
|
ports:
|
||
|
- 8080:8080
|
||
|
networks:
|
||
|
network:
|
||
|
ipv4_address: 178.18.0.3
|
||
|
|
||
|
java-backend:
|
||
|
build: ./AssistDB_V2_Back
|
||
|
container_name: java-backend
|
||
|
ports:
|
||
|
- 9001:9001
|
||
|
expose:
|
||
|
- 9001
|
||
|
links:
|
||
|
- mysql-database
|
||
|
depends_on:
|
||
|
- mysql-database
|
||
|
networks:
|
||
|
network:
|
||
|
ipv4_address: 178.18.0.5
|
||
|
|
||
|
angular-frontend:
|
||
|
build: ./AssistDB_V2_Front
|
||
|
container_name: angular-frontend
|
||
|
ports:
|
||
|
- 9002:9002
|
||
|
links:
|
||
|
- java-backend
|
||
|
networks:
|
||
|
network:
|
||
|
ipv4_address: 178.18.0.4
|