-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
92 lines (91 loc) · 2.43 KB
/
docker-compose.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
version: '3.7'
services:
nginx:
image: nginx
volumes:
- ./storage/build/configs/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- .:/var/www
working_dir: /var/www
depends_on:
- php
networks:
default:
aliases:
- planner.lodgeofsorceresses.test
# healthcheck:
# test: ["CMD", "service", "nginx", "status"]
# interval: 1s
# timeout: 1s
# retries: 10
# start_period: 10s
php:
image: audithsoftworks/docker:php
working_dir: /var/www
volumes:
- .:/var/www
- ./storage/build/configs/crontabs:/var/spool/cron/crontabs
- $HOME/.npm:/home/audith/.npm
- $HOME/.cache:/home/audith/.cache
depends_on:
- mariadb
- postgres
- redis
environment:
XDEBUG_CONFIG: >-
client_host=host.docker.internal
client_port=54321
discover_client_host=1
idekey=PHPSTORM
start_with_request=1
XDEBUG_MODE: debug
XDEBUG_SESSION: PHPSTORM
# This should correspond to the server declared in PHPStorm `Preferences | Languages & Frameworks | PHP | Servers`
# Then PHPStorm will use the corresponding path mappings
PHP_IDE_CONFIG: serverName=guildplanner-pro
REDIS_PORT: 6379
WORKDIR: "/var/www"
MYUID: "${MYUID:-1000}"
MYGID: "${MYGID:-1000}"
FONTAWESOME_AUTH_TOKEN: "${FONTAWESOME_AUTH_TOKEN}"
SQREEN_TOKEN: "${SQREEN_TOKEN}"
SQREEN_APP_NAME: "${SQREEN_APP_NAME:-Lodge of Sorceresses Guild Planner}"
entrypoint: storage/build/scripts/docker-entrypoint.sh
command: php-fpm
stdin_open: true
tty: true
ipc: host
mariadb:
image: mariadb:10
environment:
MYSQL_DATABASE: "basis"
MYSQL_ALLOW_EMPTY_PASSWORD: "true"
volumes:
- db-data:/var/lib/mysql:rw
# healthcheck:
# test: ["CMD", "mysqladmin" ,"ping", "-uroot"]
# interval: 1s
# timeout: 1s
# retries: 10
# start_period: 10s
postgres:
image: postgres:latest
environment:
POSTGRES_DB: "basis"
POSTGRES_PASSWORD: ""
POSTGRES_HOST_AUTH_METHOD: "trust"
# healthcheck:
# test: "psql -U postgres -d basis -c \"SELECT 1\""
# interval: 1s
# timeout: 1s
# retries: 10
# start_period: 10s
redis:
image: redis
# healthcheck:
# test: "redis-cli -h redis ping"
# interval: 1s
# timeout: 1s
# retries: 10
# start_period: 10s
volumes:
db-data: {}