-
Notifications
You must be signed in to change notification settings - Fork 325
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (65 loc) · 1.66 KB
/
docker-compose.yml
File metadata and controls
72 lines (65 loc) · 1.66 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
68
69
70
71
72
version: "3.1"
services:
pms-database-mariadb:
image: mariadb:11.5.2
container_name: pms-database-mariadb
hostname: pms-database-mariadb
restart: always
tty: true
environment:
- MYSQL_DATABASE=pms
- MYSQL_ROOT_PASSWORD=password
volumes:
- database:/var/lib/mysql
pms-nginx:
image: yobasystems/alpine-nginx:stable
container_name: pms-nginx
hostname: pms-nginx
working_dir: /application
restart: always
tty: true
volumes:
- .:/application
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf
ports:
- "8002:80"
pms-php-fpm:
build: ./docker/php-fpm
container_name: pms-php-fpm
hostname: pms-php-fpm
# Executing original entrypoint, else php won't work,
# then starting php-fpm, else my entrypoint won't work,
# then executing my entrypoint and finally running nano to keep container alive,
entrypoint: sh -c "/usr/local/bin/docker-php-entrypoint && php-fpm -D && ./docker/php-fpm/entrypoint.bash && nano /tmp/keep"
working_dir: /application
restart: always
tty: true
depends_on:
- pms-database-mariadb
volumes:
- .:/application
pms-adminer:
container_name: pms-adminer
hostname: pms-adminer
image: adminer:4.8.0
restart: always
tty: true
ports:
- 8081:8080
pms-mail:
container_name: pms-mail
hostname: pms-mail
restart: always
tty: true
command: >
mailpit
--smtp-auth-allow-insecure
--db-file=/mailpit/mail.db
build: ./docker/mailpit
ports:
- "8082:8025"
volumes:
- pms-mailpit-db:/mailpit/mail.db
volumes:
pms-mailpit-db:
database: