-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcompose.dist.yaml
62 lines (58 loc) · 1.57 KB
/
compose.dist.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Development project infrastructure generated over the Docker
services:
# Nginx
server:
build:
context: .
dockerfile: ./environment/docker/nginx/Dockerfile
target: distribution
image: ${REGISTRY_ENDPOINT}/${REPOSITORY_NAME}:server-${VERSION}
environment:
WORDPRESS: ${WORDPRESS}
CACHE_CONTROL: ${CACHE_CONTROL}
NGINX_LISTEN_PORT: ${NGINX_LISTEN_PORT}
links:
- wordpress
ports:
- '${NGINX_LISTEN_PORT}:${NGINX_LISTEN_PORT}'
# PHP-FPM with WP dependencies
wordpress:
build:
context: .
dockerfile: ./environment/docker/php/Dockerfile
target: fpm-distribution
args:
PHP_VERSION: ${PHP_VERSION}
image: ${REGISTRY_ENDPOINT}/${REPOSITORY_NAME}:fpm-${VERSION}
env_file:
- .env
environment:
- DB_HOST=10.254.254.254
# WP CLI
wp:
build:
context: .
dockerfile: ./environment/docker/php/Dockerfile
target: cli-distribution
args:
PHP_VERSION: ${PHP_VERSION}
image: ${REGISTRY_ENDPOINT}/${REPOSITORY_NAME}:cli-${VERSION}
env_file:
- .env
environment:
- DB_HOST=10.254.254.254
installer:
extends:
file: compose.dist.yaml
service: wp
entrypoint: [ "aztlan-install", "dist" ]
environment:
WP_TITLE: ${WP_TITLE:-WordPress}
WP_USER: ${WP_USER:-admin}
WP_PASSWORD: ${WP_PASSWORD:-admin}
WP_EMAIL: ${WP_EMAIL:-admin@admin.com}
PERMALINK: ${PERMALINK:-/%postname%/}
DEACTIVATE_PLUGINS: ${DEACTIVATE_PLUGINS:-}
VERSION: ${VERSION:-}
env_file:
- .env