-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
73 lines (71 loc) · 1.73 KB
/
docker-compose.yml
File metadata and controls
73 lines (71 loc) · 1.73 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'
services:
nginx:
container_name: ordb-nginx
image: nginx:stable
ports:
- "801:80"
volumes:
- ./app/:/www/app
- ./docker-config/nginx/development.conf:/etc/nginx/conf.d/default.conf
labels:
- "traefik.enable=true"
- "traefik.http.routers.openrecipedb-nginx.rule=Host(`openrecipedb.local`)"
- "traefik.http.routers.openrecipedb-nginx.entrypoints=web,websecure"
- "traefik.docker.network=traefik"
networks:
- traefik
- default
php-fpm:
container_name: ordb-php-fpm
expose:
- "9000"
build:
context: ./docker-config
dockerfile: Dockerfile-fpm
args:
GITHUB_TOKEN: $GITHUB_TOKEN
GROUP_ID: $GROUP_ID
USER_ID: $USER_ID
stdin_open: true
command: /docker/setup.sh
tty: true
volumes:
- ./app/:/www/app
- ./docker-config/php/php.ini:/usr/local/etc/php/php.ini
- ./docker/:/docker
environment:
- APPLICATION_ENV=development
- PHP_IDE_CONFIG=serverName=php-fpm
depends_on:
- mysql
extra_hosts:
- "host.docker.internal:host-gateway"
# composer:
# container_name: ordb-composer
# restart: 'no'
# image: composer/composer:2
# command: install --ignore-platform-reqs --prefer-source --no-plugins --no-scripts --optimize-autoloader
# volumes:
# - ./app/:/app
mysql:
ports:
- "33061:3306"
expose:
- "3306"
container_name: ordb-mysql
image: mariadb:10.5
environment:
MYSQL_ROOT_PASSWORD: app
MYSQL_PASSWORD: app
MYSQL_USER: app
MYSQL_DATABASE: app
redis:
expose:
- "6379"
container_name: ordb-redis
image: redis:6
networks:
traefik:
external:
name: traefik