-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·63 lines (57 loc) · 1.23 KB
/
docker-compose.yml
File metadata and controls
executable file
·63 lines (57 loc) · 1.23 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
version: '3.2'
services:
backend:
build:
context: docker
# args:
# - USER_ID=1000
# - GROUP_ID=1000
ports:
- 81:80
volumes:
# Re-use local composer cache via host-volume
- ~/.composer-docker/cache:/root/.composer/cache:delegated
# Mount source-code for development
- ./:/app
environment:
XDEBUG_CONFIG: "remote_host=192.168.220.1 remote_enable=1"
PHP_IDE_CONFIG: "serverName=Docker"
links:
- db
depends_on:
- db
networks:
- internal
# db:
# image: mysql:5.7
# environment:
# - MYSQL_ROOT_PASSWORD=${ROOT_PSW}
# - MYSQL_DATABASE=${SQL_DB}
# - MYSQL_USER=${SQL_USER}
# - MYSQL_PASSWORD=${SQL_PSW}
# networks:
# - internal
db:
image: postgres:9.5
environment:
- POSTGRES_DB=${SQL_DB}
- POSTGRES_USER=${SQL_USER}
- POSTGRES_PASSWORD=${SQL_PSW}
volumes:
- ./database:/var/lib/postgresql/data
networks:
- internal
adminer:
image: adminer
restart: always
ports:
- 8081:8080
networks:
- internal
networks:
internal:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.220.0/28