-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (63 loc) · 1.44 KB
/
docker-compose.yml
File metadata and controls
68 lines (63 loc) · 1.44 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
services:
redis:
image: 'redis:alpine'
container_name: 'score-films-redis'
volumes:
- score-films-redis:/data
networks:
- score-films
mysql:
image: 'mysql:8.0'
container_name: 'score-films-mysql'
working_dir: /application
volumes:
- '.:/application'
- score-films-mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=rootpass
- MYSQL_DATABASE=db_score-films
- MYSQL_USER=user
- MYSQL_PASSWORD=pass
ports:
- '33068:3306'
networks:
- score-films
webserver:
image: 'nginx:alpine'
container_name: 'score-films-webserver'
working_dir: /application
volumes:
- '.:/application'
- './docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf'
ports:
- '8082:80'
networks:
- score-films
depends_on:
- php-fpm
php-fpm:
container_name: 'score-films-php-fpm'
build:
context: docker/php-fpm
args:
WWWGROUP: ${GID:-1000}
WWWUSER: ${UID:-1000}
working_dir: /application
extra_hosts:
- 'host.docker.internal:host-gateway'
volumes:
- '.:/application'
- './docker/php-fpm/php-ini-overrides-linux.ini:/etc/php/8.1/fpm/conf.d/99-overrides.ini'
networks:
- score-films
depends_on:
- mysql
- redis
networks:
score-films:
driver: bridge
volumes:
score-films-mysql:
driver: local
score-films-redis:
driver: local