-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
46 lines (46 loc) · 1.17 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
# IT a docker-compose file for start all palladium services.
version: '3'
services:
nginx-server:
image: nginx:latest
volumes:
- apidata:/palladium/api
- ./dist/:/palladium/view/
# For local compose uncomment volume below and comment `./palladium-ssl.conf`
# - "./palladium.conf:/etc/nginx/conf.d/default.conf"
- "./palladium-ssl.conf:/etc/nginx/conf.d/default.conf"
- ./certs:/etc/nginx/certs
ports:
- 80:80
- 443:443
tty: true
restart: always
api-server:
build:
context: https://github.com/palladium-tms/palladium-api.git
restart: always
depends_on:
- db
volumes:
- apidata:/palladium-api/tmp/puma/socket/
tty: true
environment:
RACK_ENV: "production"
JWT_SECRET: ${JWT_SECRET}
JWT_ISSUER: ${JWT_ISSUER}
db:
image: postgres
shm_size: 1gb
restart: always
volumes:
- db:/var/lib/postgresql/data
environment:
POSTGRES_HOST_AUTH_METHOD: "trust"
clientside-build:
build:
context: https://github.com/palladium-tms/palladium-view.git
volumes:
- ./dist/:/palladium-view/host_dist
volumes:
db:
apidata: {}