-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
48 lines (47 loc) · 972 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"
services:
nico:
tty: true
stdin_open: true
container_name: nico
build:
context: .
dockerfile: .docker/image.dockerfile
args:
CRYPT64:
UPDATE_DB:
entrypoint: [ "/code/.docker/entrypoint.sh" ]
restart: always
depends_on:
- redis
- db
env_file: .env
environment:
REDIS_URL: "redis://redis:6379"
DATABASE_URL: "postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}"
NODE_ENV: "development"
volumes:
- .:/code:delegated
- /code/node_modules
ports:
- "2121:2121"
db:
image: postgres:14.1
restart: always
container_name: nicodb
ports:
- 5432:5432
volumes:
- ./dbdata:/var/lib/postgresql
env_file: .env
redis:
image: redis
container_name: nicoredis
restart: always
ports:
- 6379:6379
volumes:
- redisdata:/redisdata
volumes:
redisdata:
dbdata: