-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (48 loc) · 1.12 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
version: '3.6'
volumes:
postgis-data:
services:
postgres:
image: kartoza/postgis:14-3.1
container_name: postgres_water
restart: always
env_file:
- .env
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASS}
- POSTGRES_DB=${DB_NAME}
- POSTGRES_MULTIPLE_EXTENSIONS=postgis
ports:
- "5432:5432"
volumes:
- ./docker_postgres_init.sql:/docker-entrypoint-initdb.d/docker_postgres_init.sql
- postgis-data:/var/lib/postgresql
pgadmin-compose:
image: dpage/pgadmin4
container_name: pgadmin_water
env_file:
- .env
environment:
PGADMIN_DEFAULT_EMAIL: ${ADMIN_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${ADMIN_PASSWORD}
ports:
- "16543:80"
depends_on:
- postgres
api:
image: axkeyz/water:latest
container_name: api_water
env_file:
- .env
environment:
DB_HOST: postgres_water
DB_PORT: ${DB_PORT}
DB_NAME: ${DB_NAME}
DB_USER: ${DB_USER}
DB_PASS: ${DB_PASS}
SRC_API: ${SRC_API}
ports:
- "${APP_PORT}:8080"
depends_on:
- postgres