-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (57 loc) · 1.2 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
name: hds-tm-events
services:
api:
build:
context: api
image: hdstmevents/api:latest
restart: unless-stopped
environment:
DATABASE_CONNSTR: postgres://hdstmevents:Passw0rd!@db:5432/hdstmevents?pool_max_conns=10
ADMIN_KEY: developer-test-key
TMIO_URL: http://tmiosim:8100
ports:
- 8081:8081
networks:
- server-network
app:
build:
context: app
image: hdstmevents/app:latest
restart: unless-stopped
ports:
- 8080:80
networks:
- server-network
ingress:
image: nginx
restart: unless-stopped
ports:
- 8082:80
volumes:
- ./docker/nginx.conf:/etc/nginx/nginx.conf
networks:
- server-network
db:
image: postgres:16
restart: unless-stopped
shm_size: 128mb
environment:
POSTGRES_PASSWORD: Passw0rd!
POSTGRES_USER: hdstmevents
networks:
- server-network
ports:
- 5432:5432
tmiosim:
image: mockoon/cli:8.1.1
command: ["-d", "/data/mockoon.json", "-p", "8100"]
restart: unless-stopped
networks:
- server-network
ports:
- 8100:8100
volumes:
- ./tmiosim/:/data:ro
networks:
server-network:
driver: bridge