-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
72 lines (67 loc) · 1.96 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
68
69
70
71
72
version: '3.7'
services:
db:
container_name: aktak_db
image: mysql
command: ["--default-authentication-plugin=mysql_native_password"]
ports:
- "3306:3306"
environment:
DOCKER_MYSQL_USER: ${DOCKER_MYSQL_USER}
MYSQL_ROOT_PASSWORD: ${DOCKER_MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${DOCKER_MYSQL_DATABASE}
volumes:
- aktak_mysql:/var/lib/mysql
app:
container_name: aktak_app
env_file: ./.env
extra_hosts:
- "host.docker.internal:host-gateway"
build:
context: .
dockerfile: docker/dev/php/Dockerfile
args:
- DOCKER_TIMEZONE=${DOCKER_TIMEZONE}
- USER_ID=${USER_ID}
- GROUP_ID=${GROUP_ID}
- DEBUGMODE=${DEBUGMODE}
depends_on:
- db
- redis
volumes:
- '.:/usr/src/app'
- './docker/dev/php/conf/.zsh_history:/home/www-data/.zsh_history:rw'
- './docker/dev/php/conf/php.ini:/usr/local/etc/php/php.ini:ro'
- './docker/dev/php/conf/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini:ro'
working_dir: /usr/src/app
nginx:
container_name: aktak_nginx
build:
context: ./
dockerfile: docker/dev/nginx/Dockerfile
depends_on:
- app
ports:
- "80:80"
volumes:
# - './public/:/usr/src/app'
- './docker/dev/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro'
volumes_from:
- app
working_dir: /usr/src/app
redis:
container_name: aktak_redis
image: redis:alpine
restart: always
ports:
- "6380:637"
volumes:
- aktak_redis:/data
volumes:
aktak_mysql:
aktak_redis:
networks:
default:
ipam:
config:
- subnet: 172.183.0.0/16