-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
58 lines (51 loc) · 1.62 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
version: '3'
# # docker volume create --name filopgdata -d local
services:
filo-db:
build:
context: ./db
dockerfile: Dockerfile.postgres
#labels:
# collec-db: "Postgres 9.6 DB for collec v1.2"
command: su - postgres -c "POSTGIS_ENABLE_OUTDB_RASTERS=1 POSTGIS_GDAL_ENABLED_DRIVERS=ENABLE_ALL /usr/lib/postgresql/11/bin/postgres -D /var/lib/postgresql/11/main -c config_file=/etc/postgresql/11/main/postgresql.conf"
#command: /start-postgis.sh
#command: service postgresql restart
#command: /usr/bin/pg_ctlcluster 9.6 main restart
#image: 4e148aaae051
restart: always
ports:
- "5433:5432"
environment:
- PGDATA=/var/lib/postgresql/11/main
- TZ=Europe/Paris
expose:
- 5432
volumes:
#- "/home/pi/collec/postgres_data_collec_auto:/var/lib/postgresql"
#- "/c/postgresData:/var/lib/postgresql:z"
- filopgdata:/var/lib/postgresql/11/main:Z
- ~/filopgbackup:/var/lib/postgresql/backup
environment:
- ALLOW_IP_RANGE=0.0.0.0/0
filo-web:
build:
context: ./web
dockerfile: Dockerfile.apache
restart: always
ports:
- 80:80
- 443:443
#- 632:631
environment:
- TZ=Europe/Paris
#links:
# - filo-db:filo-db
volumes:
filopgdata:
#driver: local
external: true
# filo-science est accessible à cette adresse après 2 minutes (construction de la base de donnée):
# https://filo-docker.local ou https://filo-docker
# mon_ip = 127.0.0.1, ou 172.24.1.1, et accepter l'erreur sur le certificat (ajouter aux exceptions)
# Login: admin
# Password: password