-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
85 lines (79 loc) · 2.2 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: '3'
services:
#PHP Service
mrgabricavi-laravel-app:
image: mrgabricavi-laravel-app
build:
context: .
dockerfile: Dockerfile-dev.dockerfile
container_name: mrgabricavi-laravel-app
restart: unless-stopped
tty: true
depends_on:
- mrgabricavi-laravel-db
- mrgabricavi-laravel-redis
ports:
- "8000:80"
environment:
SERVICE_NAME: mrgabricavi-laravel-app
SERVICE_TAGS: dev
PHP_IDE_CONFIG: "serverName=fpm-mrgabricavi-laravel-app"
working_dir: /var/www
volumes:
- ./:/var/www:delegated
- ./_devops/local/docker/php/php-dev.ini:/etc/php8/conf.d/custom.ini:delegated
#PostgresSQL Service
mrgabricavi-laravel-db:
image: postgres
container_name: mrgabricavi-laravel-db
restart: unless-stopped
tty: true
environment:
POSTGRES_PASSWORD: root
POSTGRES_USER: mrgabricavi-laravel-db
POSTGRES_DB: mrgabricavi-laravel-db
SERVICE_TAGS: dev
SERVICE_NAME: postgres
volumes:
- mrgabricavi_laravel_dbdata_postgres:/var/lib/postgresql/data
- ./_devops/local/docker/postgres/dump_parking:/var/tmp/db_dumps:delegated
#PG Admin Service
mrgabricavi-laravel-pgadmin:
image: dpage/pgadmin4
restart: unless-stopped
tty: true
depends_on:
- mrgabricavi-laravel-db
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: root
ports:
- 8076:80
volumes:
- mrgabricavi_laravel_db_pgadmin_data:/var/lib/pgadmin
#Redis Service
mrgabricavi-laravel-redis:
image: redis:alpine
container_name: mrgabricavi-laravel-redis
restart: unless-stopped
command: redis-server --requirepass redisPass#123456
tty: true
#Redis Gui
mrgabricavi-laravel-redis-gui:
image: rediscommander/redis-commander
container_name: mrgabricavi-laravel-redis-gui
restart: unless-stopped
tty: true
depends_on:
- mrgabricavi-laravel-redis
ports:
- "8081:8081"
environment:
- REDIS_HOST=mrgabricavi-laravel-redis
- REDIS_PASSWORD=redisPass#123456
#Volumes
volumes:
mrgabricavi_laravel_dbdata_postgres:
driver: local
mrgabricavi_laravel_db_pgadmin_data:
driver: local