forked from niwaniwa/Sakura-API
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (45 loc) · 934 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
41
42
43
44
45
46
47
48
version: '3.9'
services:
db:
#mac
# platform: linux/amd64
image: postgres:15
container_name: postgres
restart: always
ports:
- 5432:5432
command: -c 'max_connections=200'
environment:
POSTGRES_USER: sakura
POSTGRES_PASSWORD: password
POSTGRES_DB: sakura
volumes:
- ./docker/db-store:/var/lib/postgresql/data
networks:
- sakura-internal
main:
build:
context: .
dockerfile: ./Dockerfile
working_dir: /app
volumes:
- .:/app
- .config.yaml:/app/Sakura-API
depends_on:
- db
ports:
- 8080:8080
environment:
DATABASE_URL: postgres://sakura:password@db:5432/sakura
networks:
- sakura-internal
- sakura-external
volumes:
db-store:
networks:
sakura-internal:
name: sakura-internal-network
external: false
sakura-external:
name: sakura-network
external: true