-
Notifications
You must be signed in to change notification settings - Fork 58
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (67 loc) · 1.78 KB
/
docker-compose.yml
File metadata and controls
67 lines (67 loc) · 1.78 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
services:
pause: &pause
build:
context: ./
dockerfile: Containerfile
ports:
- 5000:5000
volumes:
- ./docker-compose/PrivatePAUSE.pm:/home/pause/privatelib/PrivatePAUSE.pm
- ./docker-compose/tmp:/pause-run/tmp
- ./lib:/home/pause/lib
- ./bin:/home/pause/bin
- pause_run:/pause-run
- pause_data:/data
environment:
PAUSE_DEV_ROOT: /home/pause
PAUSE_DEV_EMAIL: pause@localhost.localdomain
PAUSE_DEV_DBUSER: pause
PAUSE_DEV_DBPASS: test
EMAIL_SENDER_TRANSPORT: SMTP
EMAIL_SENDER_TRANSPORT_host: mail
EMAIL_SENDER_TRANSPORT_port: 1025
depends_on:
- mysql
- mail
command: plackup -p 5000 -R /home/pause/lib/pause_2026 app_2026.psgi
paused:
<<: *pause
ports: []
command: bin/paused --pidfile /pause-run/pid/paused.pid
mysql:
image: mysql:5.7
container_name: mysql
volumes:
- ./doc/mod.schema.txt:/docker-entrypoint-initdb.d/01_mod.schema.sql
- ./doc/authen_pause.schema.txt:/docker-entrypoint-initdb.d/02_authen_pause.schema.sql
- ./docker-compose/mysql/03_fixtures.sql:/docker-entrypoint-initdb.d/03_fixtures.sql
- mysql_db:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: test
MYSQL_USER: pause
MYSQL_PASSWORD: test
MYSQL_DATABASE: pause
expose:
- 3306
mail:
image: axllent/mailpit
ports:
- 1025:1025
- 8025:8025
environment:
MP_MAX_MESSAGES: 100
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
nginx:
image: nginx:latest
ports:
- 8080:8080
depends_on:
- pause
volumes:
- ./htdocs:/var/www/html/
- ./docker-compose/nginx/default.conf:/etc/nginx/conf.d/default.conf
volumes:
mysql_db:
pause_run:
pause_data: