-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (43 loc) · 1.07 KB
/
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
version: '3'
volumes:
postgres-data:
services:
db:
image: postgres
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: passwd
POSTGRES_DB: url_shortener
PGDATA: /var/lib/postgresql/data/pgdata
restart: always
volumes:
- postgres-data:/var/lib/postgresql/data/pgdata
backend:
image: ghcr.io/pscldev/url-shortener-backend:latest
environment:
NODE_ENV: prod
PORT: 3010
DATABASE_URL: postgresql://admin:passwd@db:5432/url_shortener?schema=public
GITHUB_CLIENT_ID: 0
GITHUB_CLIENT_SECRET: 0
GITHUB_CALLBACK_URL: http://domain.tld/callback
JWT_SECRET: 0
JWT_EXPIRES_IN: 48
FRONTEND_URL: http://domain.tld
ADMIN_ID: 0
PRINT_CONFIGURATION: true
ports:
- 3010:3010
depends_on:
- db
restart: on-failure
frontend:
image: ghcr.io/pscldev/url-shortener-frontend:latest
environment:
NODE_ENV: prod
PUBLIC_API_BASE_PATH: http://domain.tld/v1
ports:
- 3000:3000
depends_on:
- backend
restart: on-failure