-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.dev.yml
79 lines (74 loc) · 1.71 KB
/
docker-compose.dev.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
version: '3'
name: badman-next
services:
# Databases
postgres:
image: postgis/postgis:16-master
shm_size: 1gb
restart: unless-stopped
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USER}
POSTGRES_DB: postgres
POSTGRES_MAX_CONNECTIONS: 500
ports:
- '0.0.0.0:5432:5432'
networks:
- api
- postgres
volumes:
- db-data:/var/lib/postgresql-16/data
- ./database/backup:/home/backup
- ./database/scripts:/home/scripts
redis:
image: 'redis:7.2.4-alpine'
ports:
- '0.0.0.0:6379:6379'
networks:
- api
restart: unless-stopped
typesense:
image: typesense/typesense:27.1
ports:
- '8108:8108'
networks:
- api
volumes:
- ./typesense-data:/data
environment:
TYPESENSE_API_KEY: 'xyz'
TYPESENSE_DATA_DIR: '/data'
# Tools
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4:8.9
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-pgadmin4@pgadmin.org}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
GUNICORN_ACCESS_LOGFILE: '/dev/null'
PGADMIN_CONFIG_SERVER_MODE: 'False'
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
PGADMIN_CONFIG_UPGRADE_CHECK_ENABLED: 'False'
volumes:
- db-admin:/var/lib/pgadmin
- ./database/backup:/home/backup
- ./database/scripts:/home/scripts
ports:
- '${PGADMIN_PORT:-5050}:80'
links:
- postgres:postgres
depends_on:
- postgres
networks:
- postgres
restart: unless-stopped
logging:
driver: 'none'
networks:
api:
postgres:
volumes:
db-data:
db-admin:
typesense-data: