-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathdocker-compose.yml
56 lines (55 loc) · 1.33 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
services:
mltshp:
build: .
env_file:
- .env
image: mltshp/mltshp-web:latest
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:
build: ./setup/dev/fakes3
env_file:
- .env
entrypoint: fakes3 --root /srv --license ${FAKES3_LICENSE_KEY} --port 4567
ports:
- "4567:4567"
volumes:
- ./mounts/fakes3:/srv
networks:
app_net:
aliases:
- mltshp-testing.fakes3
- mltshp-dev.fakes3
mysql:
image: mysql:8
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: