-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
51 lines (44 loc) · 1.16 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
50
51
version: '3'
services:
api-management:
build:
context: ./management_api
container_name: 'management-api'
# volumes:
# - .:/usr/src/app/
# working_dir: /usr/src/app
environment:
- PG_HOST=db-postgresql
- PG_USER=fungipass
- PG_DB=fungidb
- PG_PASS=randompassword
- PG_PORT=5432
ports:
- 8000:8000
- 8080:8080
worker-generic:
build:
context: ./job_worker
container_name: 'job-worker'
tty: true
# volumes:
# - .:/usr/src/app/
# working_dir: /usr/src/app
environment:
- PG_HOST=db-postgresql
- PG_USER=fungipass
- PG_DB=fungidb
- PG_PASS=randompassword
- PG_PORT=5432
db-postgresql:
image: postgres:13.4
container_name: 'postgresql-db'
restart: always
ports:
- "5432:5432"
expose:
- 5432
environment:
POSTGRES_DB: fungidb
POSTGRES_PASSWORD: randompassword
POSTGRES_USER: fungipass