generated from UniversityOfHelsinkiCS/toskaboiler
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
82 lines (78 loc) · 1.83 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: '3.5'
services:
app:
build:
context: ./
dockerfile: dev.Dockerfile
image: palaute_dev
volumes:
- ./:/usr/src/app
environment:
- DATABASE_URL=postgres://postgres:postgres@db:5432/postgres?targetServerType=primary
- REDIS_HOST=redis
- JAMI_HOST=jami
- JAMI_PORT=3003
- JWT_KEY=minttujam
- NODE_CONFIG_ENV=hy
- UPDATER_URL=http://updater:3000
ports:
- 3000:3000
- 9229:9229
container_name: palaute_dev
db:
image: postgres:15.8
environment:
- PGDATA=/data
- POSTGRES_PASSWORD=postgres
ports:
- 5432:5432
volumes:
- pg_data:/data
container_name: palaute_db
redis:
image: redis:6.2.16
command: redis-server
container_name: palaute_redis
adminer: # http://localhost:8080/?pgsql=db&username=postgres&db=postgres&ns=public
image: adminer
restart: always
environment:
- ADMINER_DEFAULT_SERVER=db
- ADMINER_DESIGN=dracula
ports:
- 8080:8080
jami:
image: quay.io/toska/jami:production
environment:
- PORT=3003
- NODE_ENV=dev
- DATABASE_URL=postgres://postgres:postgres@jami-db:5432/postgres
ports:
- 3003:3003
container_name: jami
jami-db:
image: postgres:15.8
environment:
- PGDATA=/data
- POSTGRES_PASSWORD=postgres
container_name: jami-db
ports:
- 5433:5432
volumes:
- jami_data:/data
# updater:
# build:
# context: ../norppa-updater
# dockerfile: ../norppa-updater/dev.Dockerfile
# image: updater-dev
# volumes:
# - ../norppa-updater:/usr/src/app
# environment:
# - DATABASE_URL=postgres://postgres:postgres@db:5432/postgres
# - REDIS_HOST=redis
# ports:
# - 8000:3000
# container_name: updater-dev
volumes:
pg_data:
jami_data: