-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
55 lines (52 loc) · 1.49 KB
/
docker-compose-dev.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
version: "3.5"
services:
nginx:
image: nginx:1-alpine
container_name: strava-route-explorer-nginx
hostname: nginx
working_dir: /application
volumes:
- .:/application
- /application/vendor
- ./.docker/nginx/default-dev.conf:/etc/nginx/conf.d/default.conf
- ./.docker/nginx/log/:/var/log/nginx/
env_file:
- .env
ports:
- 80:80
- 443:443
depends_on:
- php
- mysql
php:
build: .docker/php-fpm
container_name: strava-route-explorer-php-fpm
hostname: php
working_dir: /application
volumes:
- ~/.ssh/:/root/.ssh/
- .:/application
# Do not mount
- /application/node_modules
- ./.docker/php-fpm/custom.ini:/etc/php/8.2/fpm/conf.d/custom.ini
- ./.docker/php-fpm/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
env_file:
- .env
tty: true
depends_on:
- mysql
mysql:
image: mysql:8.2
platform: linux/x86_64
container_name: strava-route-explorer-mysql
hostname: mysql
volumes:
- ./.docker/mysql/data:/var/lib/mysql
- ./.docker/mysql/dump:/dump
ports:
- 3306:3306
restart: always
env_file:
- .env
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}