Browse Source

docker: simplify composer file

mitigate-move-dataloss
Zankaria 1 month ago
committed by Zankaria
parent
commit
28c8ff15c1
  1. 19
      docker-compose.yml

19
docker-compose.yml

@ -13,11 +13,9 @@ services:
- ./docker/nginx/leftypol.conf:/etc/nginx/conf.d/default.conf - ./docker/nginx/leftypol.conf:/etc/nginx/conf.d/default.conf
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf - ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./docker/nginx/proxy.conf:/etc/nginx/conf.d/proxy.conf - ./docker/nginx/proxy.conf:/etc/nginx/conf.d/proxy.conf
networks:
d_leftypol_org:
ipv4_address: 172.21.0.3
links: links:
- php - php
php: php:
build: build:
context: . context: .
@ -25,9 +23,7 @@ services:
volumes: volumes:
- ./local-www:/var/www - ./local-www:/var/www
- ./docker/php/www.conf:/usr/local/etc/php-fpm.d/www.conf - ./docker/php/www.conf:/usr/local/etc/php-fpm.d/www.conf
networks:
d_leftypol_org:
ipv4_address: 172.21.0.4
#MySQL Service #MySQL Service
leftypol-db: leftypol-db:
image: mysql:8.0.35 image: mysql:8.0.35
@ -40,14 +36,3 @@ services:
MYSQL_DATABASE: vichan MYSQL_DATABASE: vichan
MYSQL_ROOT_PASSWORD: password MYSQL_ROOT_PASSWORD: password
command: "--default-authentication-plugin=mysql_native_password" command: "--default-authentication-plugin=mysql_native_password"
networks:
d_leftypol_org:
ipv4_address: 172.21.0.2
#Docker Networks
networks:
d_leftypol_org:
ipam:
driver: default
config:
- subnet: 172.21.0.0/16

Loading…
Cancel
Save