-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (56 loc) · 1.51 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
version: '3.5'
services:
symfony-jwt-web:
container_name: symfony-jwt-web
build:
context: ./docker/nginx
args:
UID: $U_ID
ports:
- 301:80
volumes:
- ./public:/appdata/www/public
networks:
- symfony-jwt-network
depends_on:
- symfony-jwt-be
symfony-jwt-be:
container_name: symfony-jwt-be
build:
context: ./docker/php
args:
UID: $U_ID
environment:
PHP_IDE_CONFIG: serverName=Docker
PHP_XDEBUG_ENABLED: 1
XDEBUG_CONFIG: remote_host=172.17.0.1 remote_port=9005 # Linux users
# XDEBUG_CONFIG: remote_host=host.docker.internal remote_port=9005 # MacOS users
volumes:
- ./:/appdata/www
- ./docker/php/xdebug-linux.ini:/usr/local/etc/php/conf.d/xdebug.ini # Linux users
# - ./docker/php/xdebug-macos.ini:/usr/local/etc/php/conf.d/xdebug.ini # MacOS users
- ~/.ssh/id_rsa:/home/appuser/.ssh/id_rsa
networks:
- symfony-jwt-network
depends_on:
- symfony-jwt-db
symfony-jwt-db:
container_name: symfony_jwt_db
image: mysql:8.0
ports:
- 40100:3306
environment:
MYSQL_DATABASE: docker_symfony_database
MYSQL_USER: user
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: root
command: mysqld --sql_mode="STRICT_ALL_TABLES,NO_ENGINE_SUBSTITUTION"
volumes:
- symfony-jwt-database-data:/var/lib/mysql
networks:
- symfony-jwt-network
volumes:
symfony-jwt-database-data:
networks:
symfony-jwt-network:
external: true