-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
53 lines (49 loc) · 1.13 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
services:
web:
image: nginx:1.27.1
ports:
- '8080:80'
volumes:
- ./public:/var/www/html
- ./default.conf:/etc/nginx/conf.d/default.conf
networks:
- internal
php-fpm:
build:
context: .
dockerfile: php.dev.Dockerfile
volumes:
- ./src:/var/www/src
- ./public:/var/www/html
- ./.env:/var/www/.env
- ./vendor:/var/www/vendor
networks:
- internal
environment:
XDEBUG_MODE: debug
XDEBUG_CONFIG: client_host=host.docker.internal client_port=9003
postgresql:
image: postgres:16.4
environment:
POSTGRES_DB: db_looper
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- ./.pgdata:/var/lib/postgresql/data
networks:
- internal
pgadmin4:
image: elestio/pgadmin:REL-8_11
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
PGADMIN_LISTEN_PORT: 8080
ports:
- "8081:8080"
networks:
- internal
networks:
internal:
driver: bridge
volumes:
postgres_data: