forked from doktorupnos/crow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
49 lines (45 loc) · 1.04 KB
/
docker-compose.yaml
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
version: '3'
services:
postgres:
image: postgres:16.1-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: crow
volumes:
- ./persistence/postgres-config:/etc/postgresql
networks:
- crownet
ports:
- "5432:5432"
backend:
restart: on-failure
ports:
- "8000:8000"
networks:
- crownet
environment:
- ADDR=backend:8000
- CORS_ORIGIN=http://*
- JWT_SECRET=+3xObWCCIAQf/N1ltJD27kZ5gfjmfbUBG4ViZ/6oHI3rpVFmhAo7yzwWg4mivB1Jea8UuwooegxTdZhZgLkZZA==
- JWT_LIFETIME=1h
- DSN=postgres://postgres:postgres@postgres:5432/crow
- DEFAULT_POSTS_PAGE_SIZE=5
- DEFAULT_FOLLOWS_PAGE_SIZE=10
build:
context: "./backend"
dockerfile: "./build/package/Dockerfile"
depends_on:
- postgres
# web:
# restart: on-failure
# ports:
# - "3000:3000"
# networks:
# - crownet
# build: "./web"
# depends_on:
# - postgres
# - backend
networks:
crownet: