42_Inception/srcs/docker-compose.yml

63 lines
1005 B
YAML
Raw Permalink Normal View History

2023-10-07 10:52:15 -04:00
version: "3"
2023-10-04 10:01:11 -04:00
services:
nginx:
container_name: nginx
2023-10-05 09:45:59 -04:00
image: nginx
2023-10-04 10:01:11 -04:00
build: nginx
ports:
- "443:443"
2023-10-05 10:23:50 -04:00
volumes:
- wordpress:/var/www/wordpress
depends_on:
- wordpress
2023-10-07 10:52:15 -04:00
networks:
- inception
restart: always
2023-10-05 10:23:50 -04:00
wordpress:
container_name: wordpress
2023-10-05 10:23:50 -04:00
image: wordpress
build: wordpress
volumes:
- wordpress:/var/www/wordpress
depends_on:
- mariadb
env_file:
- .env
2023-10-07 10:52:15 -04:00
networks:
- inception
restart: always
mariadb:
container_name: mariadb
image: mariadb
build: mariadb
volumes:
- mariadb:/data
env_file:
- .env
2023-10-07 10:52:15 -04:00
networks:
- inception
restart: always
2023-10-05 10:23:50 -04:00
volumes:
2023-10-07 10:52:15 -04:00
2023-10-05 10:23:50 -04:00
wordpress:
2023-10-07 10:52:15 -04:00
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '/home/cchauvet/data/wp-files/'
mariadb:
2023-10-07 10:52:15 -04:00
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '/home/cchauvet/data/wp-db/'
networks:
inception:
driver: bridge