-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (56 loc) · 1.47 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:
akonforms-web:
container_name: akonforms-web
build:
context: ./docker/nginx
args:
UID: $U_ID
ports:
- 250:80
volumes:
- ./public:/appdata/www/public
depends_on:
- akonforms-be
networks:
- akonforms-network
akonforms-be:
container_name: akonforms-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
# - ./docker/php/xdebug-macos.ini:/usr/local/etc/php/conf.d/xdebug.ini
- ~/.ssh/id_rsa:/home/appuser/.ssh/id_rsa
# depends_on:
# - akonforms-db
networks:
- akonforms-network
# akonforms-db:
# container_name: akonforms-db
# image: mariadb:10.1.47
# ports:
# - 36000:3306
# environment:
# MYSQL_DATABASE: symfony_db
# MYSQL_USER: user
# MYSQL_PASSWORD: password
# MYSQL_ROOT_PASSWORD: root
# command: mysqld --sql_mode="STRICT_ALL_TABLES,NO_ENGINE_SUBSTITUTION"
# volumes:
# - akonforms-db-data:/var/lib/mysql
# networks:
# - akonforms-network
#volumes:
# akonforms-db-data:
networks:
akonforms-network:
external: true