-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.build.yml
68 lines (63 loc) · 1.63 KB
/
docker-compose.build.yml
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
63
64
65
66
67
68
services:
composer:
image: "${APP_COMPOSER_IMAGE}"
container_name: "${APP_NAME}_composer"
restart: no
env_file: .env
environment:
DEFAULT_USER: ${DEFAULT_USER}
CURRENT_UID: ${CURRENT_UID:-$DEFAULT_UID}
CURRENT_GID: ${CURRENT_GID:-$DEFAULT_GID}
working_dir: /srv
volumes:
# Project files with same path
- ./:/srv
# User added in Dockerfile
- ~/.ssh:/home/${DEFAULT_USER}/.ssh:ro
# Debug log
- ./logs/wordpress:/var/log/wordpress
# PHP ini config
- ./config/php:/usr/local/etc/php
# Share shell scripts
- ./sh:/shell:ro
node:
image: "${APP_NODE_IMAGE}"
container_name: "${APP_NAME}_node"
restart: no
env_file: .env
environment:
CURRENT_UID: ${CURRENT_UID:-$DEFAULT_UID}
CURRENT_GID: ${CURRENT_GID:-$DEFAULT_GID}
working_dir: /srv/web
ports:
- "3000:3000"
- "3001:3001"
volumes:
# Web root folder
- ./web/wp-core:/srv/web
# WordPress wp-content folder
- ./web/wp-content:/srv/web/wp-content
phpmyadmin:
image: "${APP_PHPMYADMIN_IMAGE}"
container_name: "${APP_NAME}_phpmyadmin"
restart: no
ports:
- ${PMA_EXT_PORT}:80
env_file: .env
environment:
PMA_ARBITRARY: ${PMA_ARBITRARY}
PMA_HOST: ${MYSQL_HOST}
PMA_USER: ${MYSQL_ROOT_USER}
PMA_PASSWORD: ${MYSQL_ROOT_PASSWORD}
UPLOAD_LIMIT: 500M
mailhog:
image: "${APP_MAILHOG_IMAGE}"
container_name: "${APP_NAME}_mailhog"
restart: no
ports:
- "8025:8025"
- "1025:1025"
networks:
project_network:
driver: bridge
external: true