-
Notifications
You must be signed in to change notification settings - Fork 27
/
docker-compose.yml
42 lines (42 loc) · 1.13 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
services:
blink:
image: ghcr.io/janejeon/blink:latest
container_name: blink
env_file:
- .env
depends_on:
- postgres_blink
- redis_blink
networks:
- blink_net
ports:
- 3000:3000
# The frontend can be accessed on this port under the /app folder, eg: if your BASE_URL is test.com, the frontend can be accessed via test.com/app
# You can use a reverse proxy to configure the /app directory to a different port.
# You can change the port as well using the above string and the PORT environment variable.
postgres_blink:
container_name: postgres_blink
image: postgres:14-alpine
ports:
- 5432:5432
environment:
# keep this in sync w/ DATABASE_URL in your environment file/variable
POSTGRES_DB: blink
POSTGRES_USER: user
POSTGRES_PASSWORD: password
volumes:
- postgres_blink:/var/lib/postgresql/data
networks:
- blink_net
redis_blink:
container_name: redis_blink
image: redis:7-alpine
ports:
- 6379:6379
networks:
- blink_net
networks:
blink_net:
name: blink_net
volumes:
postgres_blink: