mirror of
https://github.com/cupcakearmy/liquet.git
synced 2024-12-21 23:56:24 +00:00
docker-compose for prod
This commit is contained in:
parent
75413af2fb
commit
2574a9e63a
35
docker-compose.prod.yml
Executable file
35
docker-compose.prod.yml
Executable file
@ -0,0 +1,35 @@
|
||||
version: '3.7'
|
||||
|
||||
x-default: &default
|
||||
restart: unless-stopped
|
||||
env_file: .env
|
||||
|
||||
networks:
|
||||
traefik:
|
||||
external: true
|
||||
|
||||
services:
|
||||
wp:
|
||||
<<: *default
|
||||
build: .
|
||||
volumes:
|
||||
- ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini:ro
|
||||
- ./data/wp:/var/www/html
|
||||
- ./liquet:/var/www/html/wp-content/themes/liquet:ro
|
||||
ports:
|
||||
- 80
|
||||
networks:
|
||||
- default
|
||||
- traefik
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.port=80
|
||||
- traefik.docker.network=traefik
|
||||
- traefik.backend=blog
|
||||
- traefik.frontend.rule=Host:blog.nicco.io
|
||||
|
||||
db:
|
||||
<<: *default
|
||||
image: mariadb:10.3
|
||||
volumes:
|
||||
- ./data/db:/var/lib/mysql
|
@ -1,7 +1,7 @@
|
||||
version: '3.7'
|
||||
|
||||
x-default: &default
|
||||
restart: always
|
||||
restart: unless-stopped
|
||||
env_file: .env
|
||||
|
||||
services:
|
||||
|
Loading…
Reference in New Issue
Block a user