-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathatuin.yml
More file actions
49 lines (46 loc) · 1.16 KB
/
Copy pathatuin.yml
File metadata and controls
49 lines (46 loc) · 1.16 KB
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
networks:
atuin:
proxy:
volumes:
atuin-database-data:
services:
atuin:
image: ghcr.io/atuinsh/atuin:18.16.1
command: start
depends_on:
atuin-database:
condition: service_healthy
environment:
- ATUIN_HOST=0.0.0.0
- ATUIN_OPEN_REGISTRATION=false
- ATUIN_DB_URI=postgres://${ATUIN_DB_USERNAME}:${ATUIN_DB_PASSWORD}@atuin-database/${ATUIN_DB_DATABASE_NAME}
- TZ=${TIMEZONE}
expose:
- 8888 # api
extends:
file: common.yml
service: log-to-json
networks:
- proxy
- atuin
restart: unless-stopped
volumes:
- /etc/localtime:/etc/localtime:ro
atuin-database:
image: docker.io/postgres:14-alpine
environment:
- POSTGRES_USER=${ATUIN_DB_USERNAME}
- POSTGRES_PASSWORD=${ATUIN_DB_PASSWORD}
- POSTGRES_DB=${ATUIN_DB_DATABASE_NAME}
expose:
- 5432 # db
extends:
file: common.yml
service: log-to-json
healthcheck:
test: pg_isready --dbname='${ATUIN_DB_DATABASE_NAME}' --username='${ATUIN_DB_USERNAME}'
networks:
- atuin
restart: unless-stopped
volumes:
- atuin-database-data:/var/lib/postgresql/data