-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose-dummy
More file actions
79 lines (72 loc) · 1.66 KB
/
compose-dummy
File metadata and controls
79 lines (72 loc) · 1.66 KB
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
volumes:
musikbruder-mysql-data:
networks:
default:
name: musikbruder
x-web: &x-web # <<: *x-env
build:
context: .
dockerfile: Dockerfile.deploy
restart: on-failure
tty: true
services:
php:
build:
context: ./docker/deploy/php
dockerfile: Dockerfile
working_dir: /data
command: ["php"]
healthcheck:
test: ["CMD", "php-fpm", "-t"]
interval: 3s
timeout: 2s
retries: 10
volumes:
- .:/data
%MUSIC_DIR_AS_VOLUME%
web:
<<: *x-web
volumes_from:
- php
ports:
- ${WEB_PORT}:80
command: ["nginx"]
depends_on:
php:
condition: service_healthy
mysql:
image: mysql:8.0
command: >
--max_connections=${MYSQL_MAX_CONNECTIONS}
--sql_mode=${MYSQL_SQL_MODE}
--autocommit=${MYSQL_AUTOCOMMIT}
restart: unless-stopped
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: ${MYSQL_ALLOW_EMPTY_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_MAX_CONNECTIONS: ${MYSQL_MAX_CONNECTIONS}
# expose:
# - ${MYSQL_PORT}
volumes:
- musikbruder-mysql-data:/var/lib/mysql
phpmyadmin:
image: phpmyadmin:latest
restart: unless-stopped
environment:
PMA_HOST: ${MYSQL_HOST}
PMA_USER: ${MYSQL_USER}
PMA_PORT: ${MYSQL_PORT}
PMA_PASSWORD: ""
UPLOAD_LIMIT: ${PMA_UPLOAD_LIMIT}
PMA_ARBITRARY: 1
ports:
- ${PMA_PORT}:80
# redis:
# image: redis/redis-stack:latest
# environment:
# - REDIS_ARGS=--requirepass ${REDIS_PASSWORD} --save 20 1
# restart: always
# ports:
# - 6379:6379
# volumes:
# - bueld-redis-data:/var/lib/redis-data