63 lines
1.1 KiB
YAML
63 lines
1.1 KiB
YAML
version: "3.8"
|
|
|
|
services:
|
|
proxy:
|
|
image: nginx
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
volumes:
|
|
- ./.dev/nginx/default.conf.template:/etc/nginx/templates/default.conf.template
|
|
secrets:
|
|
- SSL_CRT
|
|
- SSL_KEY
|
|
env_file:
|
|
- .env
|
|
|
|
wordpress:
|
|
build:
|
|
context: .
|
|
args:
|
|
UID: ${UID-1000}
|
|
GID: ${GID-1000}
|
|
ports:
|
|
- "3000"
|
|
command:
|
|
- "web"
|
|
- "--env=/dev/null"
|
|
environment:
|
|
HISTFILE: ${HISTFILE-/tmp/.bash_history}
|
|
env_file: ./.env
|
|
volumes:
|
|
- ./:/app
|
|
|
|
wp-db:
|
|
image: mysql:5.7
|
|
volumes:
|
|
- wp-db-data:/var/lib/mysql
|
|
restart: always
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: somewordpress
|
|
MYSQL_DATABASE: wordpress
|
|
MYSQL_USER: wordpress
|
|
MYSQL_PASSWORD: wordpress
|
|
|
|
mailhog:
|
|
image: mailhog/mailhog
|
|
ports:
|
|
- 8025:8025
|
|
|
|
volumes:
|
|
wp-db-data:
|
|
|
|
networks:
|
|
default:
|
|
name: blog
|
|
external: true
|
|
|
|
secrets:
|
|
SSL_CRT:
|
|
file: ${SSL_CRT-./.dev/nginx/lndo.site.crt}
|
|
SSL_KEY:
|
|
file: ${SSL_KEY-./.dev/nginx/lndo.site.key}
|