-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
67 lines (60 loc) · 1.87 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
version: "3.3"
services:
db:
image: mysql:8
env_file:
- global.env
volumes:
- dbvolume:/var/lib/mysql
- ./db:/docker-entrypoint-initdb.d
ports:
- 3306:3306
# if you want to pass startup options to mysqld, do it like this:
# command: mysqld --innodb-buffer-pool-size=2147483648 --disable-log-bin
# this example enlarges the buffer pool size to 2GB, which is recommended
# if you have enough RAM to spare and disk IO is the bottleneck of your
# database performance. It also disables bin logs.
phpmyadmin:
image: phpmyadmin/phpmyadmin:5
env_file:
- global.env
ports:
- 8080:80
volumes:
- /sessions
depends_on:
- db
environment:
PMA_HOST: db
# here, we build an image that does (almost) nothing
# but that other containers can use as a parent image:
dystonse-gtfs-data:
build: https://github.com/dystonse/dystonse-gtfs-data.git
# while developing on dystonse-gtfs-data, you can use this line instead:
# build: ../dystonse-gtfs-data
image: dystonse-gtfs-data:local
env_file:
- global.env
command: echo "hello world from dystonse-gtfs-data!"
# collect-, import-, and analyse-services for all sources are defined in docker-compose.override.yml
volumes:
dbvolume:
filevolume:
# If you want easy access to the files, we recommend using bind mounts from
# the host's file system instead of internal docker volumes.
# Caution: only do this if your host's file system supports
# filenames containing ':' (e.g. Ext file system)!
# The syntax for named bind mounts looks like this:
# volumes:
# dbvolume:
# driver: local
# driver_opts:
# type: none
# o: bind
# device: /home/dystonse/dbvolume
# filevolume:
# driver: local
# driver_opts:
# type: none
# o: bind
# device: /home/dystonse/filevolume