forked from MAC-USB/MACbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (38 loc) · 1008 Bytes
/
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
version: '3'
services:
postgres:
container_name: db_MACbot
image: postgres:15-bookworm
restart: always
environment:
- POSTGRES_DB=${DB_DATABASE}
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- PGDATA=/var/lib/postgresql/data/pgdata
ports:
- '5432:5432'
volumes:
- ./pgdata:/var/lib/postgresql/data
- ./database/tables.sql:/docker-entrypoint-initdb.d/tables.sql
networks:
- default
macbot:
container_name: MACbot
build:
context: .
dockerfile: Dockerfile
restart: always
image: macbot:2.0
ports:
- '8080:8080'
volumes:
- ./src:/app/src
- .env:/app/.env
- /etc/hostname:/etc/hostname
depends_on:
- postgres
networks:
- default
networks:
default:
driver: bridge