-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (56 loc) · 1.4 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
version: '3.9'
services:
web:
image: nginx:latest
restart: unless-stopped
ports:
- 80:80
depends_on:
- php-fpm
links:
- php-fpm
volumes:
- ./.docker/web/nginx-vhost.conf:/etc/nginx/conf.d/default.conf:ro
- ./:/pulsar
php-fpm:
build:
context: ./.docker/php-fpm
dockerfile: Dockerfile
restart: unless-stopped
stop_grace_period: 1s
volumes:
- ./.docker/php-fpm/ini-overrides.ini:/usr/local/etc/php/conf.d/99-zzzoverrides.ini:ro
- ./:/pulsar
env_file:
- ./.env
environment:
PROJECT_NAME: ${COMPOSE_PROJECT_NAME}
DB_HOST: "${COMPOSE_PROJECT_NAME}-mariadb-1"
CACHE_HOST: "${COMPOSE_PROJECT_NAME}-memcached-1"
#DB_CONNECTION: sqlite
#DB_DATABASE: /pulsar/path/to/database.sqlite3
#ports:
#- 9000:9000
#- 9003:9003
depends_on:
- mariadb
- memcached
links:
- mariadb
- memcached
mariadb:
image: mariadb
restart: unless-stopped
environment:
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: 1
MARIADB_DATABASE: "${DB_DATABASE}"
MARIADB_USER: "${DB_USER}"
MARIADB_PASSWORD: "${DB_PASSWORD}"
command: [
'--default_authentication_plugin=mysql_native_password',
'--character-set-server=utf8mb4',
'--collation-server=utf8mb4_unicode_ci'
]
memcached:
image: memcached:latest
restart: unless-stopped