-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
67 lines (62 loc) · 1.62 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
# Usage with non-root user:
# CURRENT_UID=$(id -u):$(id -g) docker-compose up
version: '3.4'
services:
db:
container_name: dismoi-backend-devdb
image: mariadb:10.2.25
ports:
- '3308:3306'
volumes:
- /var/lib/mysql
user: ${CURRENT_UID:-root:root}
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_USER=lmem
- MYSQL_PASSWORD=meml
- MYSQL_DATABASE=kraftbackenddev
dbtest:
container_name: dismoi-backend-testdb
image: mariadb:10.2.25
ports:
- '3309:3306'
volumes:
- /var/lib/mysql
user: ${CURRENT_UID:-root:root}
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_USER=lmem
- MYSQL_PASSWORD=meml
- MYSQL_DATABASE=kraftbackenddev
php:
container_name: dismoi-backend-php
build: docker/php
working_dir: /var/www
volumes:
- .:/var/www
- ./docker/php/conf.d/opcache.ini:/usr/local/etc/php/conf.d/opcache.ini
- ./docker/php/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
- ./docker/php/conf.d/overrides.ini:/usr/local/etc/php/conf.d/overrides.ini
depends_on:
- db
- dbtest
user: ${CURRENT_UID:-root:root}
webserver:
image: nginx:alpine
container_name: dismoi-backend-webserver
working_dir: /var/www
volumes:
- ./var/logs:/var/www/logs
- .:/var/www
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
ports:
- "8088:80"
depends_on:
- php
user: ${CURRENT_UID:-root:root}
mailhog:
image: mailhog/mailhog
ports:
- 1025:1025 # smtp server
- 8025:8025 # web ui
user: ${CURRENT_UID:-root:root}