-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
64 lines (58 loc) · 1.25 KB
/
docker-compose.yaml
File metadata and controls
64 lines (58 loc) · 1.25 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
version: "3.9"
services:
php-fpm:
container_name: test-php
tty: true
build:
dockerfile: Dockerfile
args:
- USER_ID=$uid
- GROUP_ID=$gid
- USERNAME=$USER
volumes:
- ./code:/code
restart: unless-stopped
networks:
- symfony_app_network
nginx:
image: nginx:1.23-alpine
container_name: test-nginx
depends_on:
- php-fpm
volumes:
- ./code:/code
- ./nginx/conf.d:/etc/nginx/conf.d
ports:
- "8092:80"
restart: unless-stopped
networks:
- symfony_app_network
mysql:
image: mysql:8.0.33
platform: linux/x86_64
command: --default-authentication-plugin=mysql_native_password
restart: always
volumes:
- test-mysql-data:/var/lib/mysql:cached
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
ports:
- "33069:3306"
depends_on:
- php-fpm
networks:
- symfony_app_network
redis:
image: "redis:alpine"
container_name: test-redis
ports:
- "6377:6379"
networks:
- symfony_app_network
volumes:
test-mysql-data:
networks:
symfony_app_network: