-
Notifications
You must be signed in to change notification settings - Fork 21
/
docker-compose.yml
50 lines (49 loc) · 1.24 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
version: "2"
services:
mltshp:
image: mltshp/mltshp-web
volumes:
- .:/srv/mltshp.com/mltshp
- ./mounts/logs:/srv/mltshp.com/logs
- ./mounts/uploaded:/srv/mltshp.com/uploaded
- ./setup/dev/nginx.conf:/etc/nginx/nginx.conf
- ./setup/dev/supervisord.conf:/etc/supervisor/conf.d/mltshp.conf
ports:
- "8000:80"
depends_on:
- mysql
- fakes3
links:
- mysql
- fakes3
networks:
app_net:
aliases:
- mltshp.localhost
fakes3:
image: ourtownrentals/fake-s3
entrypoint: fakes3 -r /srv --license ${FAKES3_LICENSE_KEY} -p 8000
volumes:
- ./mounts/fakes3:/srv
networks:
app_net:
aliases:
- mltshp-testing.fakes3
- mltshp-dev.fakes3
mysql:
image: mysql:latest
ports:
- "3306:3306"
volumes:
- ./mounts/mysql:/var/lib/mysql
- ./setup/dev/mysql-conf.d:/etc/mysql/conf.d
- ./setup/db-install.sql:/docker-entrypoint-initdb.d/00_db-install.sql
- ./setup/db-fixtures.sql:/docker-entrypoint-initdb.d/01_db-fixtures.sql
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_DATABASE: "mltshp"
MYSQL_USER: "mltshp"
networks:
- app_net
networks:
app_net: