-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathdocker-compose.yml
85 lines (79 loc) · 2.04 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
its-rest-api-app:
image: its-rest-api-app
build:
context: .
dockerfile: Dockerfile-dev.dockerfile
container_name: its-rest-api-app
restart: unless-stopped
tty: true
depends_on:
- its-rest-api-db
- its-rest-api-redis
ports:
- "8080:80"
environment:
SERVICE_NAME: its-rest-api-app
SERVICE_TAGS: dev
PHP_IDE_CONFIG: "serverName=fpm-its-rest-api-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
its-rest-api-db:
image: postgres
container_name: its-rest-api-db
restart: unless-stopped
tty: true
environment:
POSTGRES_PASSWORD: root
POSTGRES_USER: its-rest-api-db
POSTGRES_DB: its-rest-api-db
SERVICE_TAGS: dev
SERVICE_NAME: postgres
volumes:
- its_rest_api_dbdata_postgres:/var/lib/postgresql/data
- ./_devops/local/docker/postgres/dump_parking:/var/tmp/db_dumps:delegated
#PG Admin Service
its-rest-api-pgadmin:
image: dpage/pgadmin4
restart: unless-stopped
tty: true
depends_on:
- its-rest-api-db
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: root
ports:
- 8076:80
volumes:
- its_rest_api_db_pgadmin_data:/var/lib/pgadmin
#Redis Service
its-rest-api-redis:
image: redis:alpine
container_name: its-rest-api-redis
restart: unless-stopped
command: redis-server --requirepass redisPass#123456
tty: true
#Redis Gui
its-rest-api-redis-gui:
image: rediscommander/redis-commander
container_name: its-rest-api-redis-gui
restart: unless-stopped
tty: true
depends_on:
- its-rest-api-redis
ports:
- "8081:8081"
environment:
- REDIS_HOST=its-rest-api-redis
- REDIS_PASSWORD=redisPass#123456
#Volumes
volumes:
its_rest_api_dbdata_postgres:
driver: local
its_rest_api_db_pgadmin_data:
driver: local