-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
52 lines (46 loc) · 1.23 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
version: '3.0'
services:
ampache-php:
build: .
volumes:
- www-volume:/var/www # share www directory with lighttpd
- /media/music:/media
networks:
- shared-net
lighttpd:
build: ./lighttpd
restart: always
ports:
- "80:80"
- "1900:1900" # UPnP
volumes:
- www-volume:/var/www:ro # share www directory with ampache-php
networks:
- shared-net
environment:
PHP_FASTCGI_HOST: "ampache-php" # pass the fastcgi host to lighttpd
depends_on:
- ampache-php # need to wait for apache-php to start so we can resolve its hostname
mysql:
image: mysql:5
restart: always
container_name: ampache-mysql
environment:
# For testing
# MYSQL_ROOT_PASSWORD: "1"
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
networks:
- shared-net
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- 8080:80
environment:
PMA_HOST: ampache-mysql
networks:
- shared-net
volumes:
www-volume:
networks:
shared-net:
driver: bridge