initial commit
This commit is contained in:
66
srcs/docker-compose.yml
Normal file
66
srcs/docker-compose.yml
Normal file
@@ -0,0 +1,66 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
mariadb:
|
||||
container_name: mariadb
|
||||
env_file: .env
|
||||
networks:
|
||||
- inception
|
||||
build:
|
||||
context: requirements/mariadb
|
||||
dockerfile : Dockerfile
|
||||
volumes:
|
||||
- mariadb:/var/lib/mysql
|
||||
restart: unless-stopped
|
||||
expose:
|
||||
- "3306"
|
||||
|
||||
nginx:
|
||||
container_name: nginx
|
||||
env_file: .env
|
||||
volumes:
|
||||
- wordpress:/var/www/wordpress
|
||||
networks:
|
||||
- inception
|
||||
depends_on:
|
||||
- wordpress
|
||||
build:
|
||||
context: requirements/nginx
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "443:443"
|
||||
restart: on-failure
|
||||
|
||||
wordpress:
|
||||
container_name: wordpress
|
||||
env_file: .env
|
||||
volumes:
|
||||
- wordpress:/var/www/wordpress
|
||||
networks:
|
||||
- inception
|
||||
build:
|
||||
context: requirements/wordpress
|
||||
dockerfile: Dockerfile
|
||||
depends_on:
|
||||
- mariadb
|
||||
restart: on-failure
|
||||
expose:
|
||||
- "9000"
|
||||
|
||||
volumes:
|
||||
wordpress:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: 'none'
|
||||
o: 'bind'
|
||||
device: '/home/vvaas/data/wordpress'
|
||||
mariadb:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: 'none'
|
||||
o: 'bind'
|
||||
device: '/home/vvaas/data/mariadb'
|
||||
|
||||
networks:
|
||||
inception:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user