forked from MTES-MCT/dialog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (64 loc) · 1.63 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
volumes:
database: {}
pgadmin-data: {}
services:
database:
image: postgis/postgis:14-3.3-alpine
environment:
POSTGRES_DB: dialog
POSTGRES_PASSWORD: dialog
POSTGRES_USER: dialog
ports:
- '5432:5432'
volumes:
- 'database:/var/lib/postgresql@14/data:rw'
php:
build:
context: ./docker/php
ports:
- '9000:9000'
- '8080:8080'
volumes:
- ./:/var/www/dialog
- ./docker/php/php.ini:/usr/local/etc/php/php.ini
depends_on:
- database
- redis
nginx:
image: nginx:stable-alpine
ports:
- '8000:80'
volumes:
- ./:/var/www/dialog
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./paas/server.locations:/etc/nginx/server.locations
depends_on:
- php
- database
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin4
restart: always
ports:
- '5050:80'
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: equipe
volumes:
- pgadmin-data:/var/lib/pgadmin
depends_on:
- database
redis:
image: redis:5-alpine
ports:
- 6379:6379
gdal:
# https://github.com/OSGeo/gdal/tree/master/docker
image: ghcr.io/osgeo/gdal:alpine-small-latest
container_name: gdal
profiles: [gdal]
init: true # Forward signals such as Ctrl+C, see: https://docs.docker.com/compose/compose-file/05-services/#init
extra_hosts:
# Allow accessing host ports from this container via host.docker.internal on Linux
# https://stackoverflow.com/a/43541732
- host.docker.internal:host-gateway