-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
46 lines (42 loc) · 1.21 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
services:
apache:
image: httpd:alpine
container_name: hackathon-apache
ports:
- "${HTTP_PORT:-80}:80"
- "${SHTTP_PORT:-443}:443"
volumes:
- ./:/var/www/html
- ./docker/httpd.conf:/usr/local/apache2/conf/httpd.conf
php:
container_name: hackathon-php
user: "${USERMAP_UID:-1000}:${USERMAP_GID:-1000}"
image: "ghcr.io/ownhackathon/hackathon-api-php:latest"
volumes:
- ./:/var/www/html
- ./docker/php/php-ini-overrides.ini:/usr/local/etc/php/conf.d/extra.ini
database:
image: mariadb:${MARIADB_VERSION:-latest}
container_name: hackathon-mariadb
ports:
- "${MYSQL_PUBLIC_PORT:-3306}:3306"
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-root}
MYSQL_DATABASE: ${MYSQL_DATABASE:-db}
MYSQL_USER: ${MYSQL_USER:-dev}
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-dev}
volumes:
- db:/var/lib/mysql
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_general_ci
mailhog:
image: mailhog/mailhog
container_name: hackathon-mailhog
logging:
driver: 'none' # disable saving logs
ports:
- "1025:1025" # smtp server
- "8025:8025" # web ui
volumes:
db: