-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose-prod.yml
73 lines (69 loc) · 1.86 KB
/
docker-compose-prod.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
#
# This is sample docker file for use in a prod environment
#
# NOTE:
# You will need to create the redis-data volumes:
# docker volume create --name=redis-data
#
# NOTE: if you want to run postgres in a container have a look at the staging compose file
# you will need to set the links for web and sidekiq accordingling and also set up
# an external volume for postgres data
#
# docker volume create --name=pgdata
#
version: "3.7"
volumes:
redis-data:
services:
redis:
image: redis:alpine
restart: always
volumes:
- redis-data:/data
web:
command: "/opt/planorama/script/planorama_start.sh"
# planorama:latest for latest release (tagged)
# planorama:main for latest build of main branch
image: ghcr.io/planoramaevents/planorama:latest
ports:
- "127.0.0.1:3000:3000"
volumes:
# NOTE: this will need to reflect local system
- /var/log/planorama/web:/opt/planorama/log
- type: tmpfs
target: /app/tmp
environment:
- PGID=1005
- PUID=1001
- RAILS_ENV=production
- NODE_ENV=production
env_file:
# NOTE: this will need to reflect local system
- "/opt/plano/etc/planorama.env"
depends_on:
- redis
links:
- redis
restart: always
planorama-sidekiq:
command: "/opt/planorama/script/planorama_sidekiq.sh"
# See above note re which image to use
image: ghcr.io/planoramaevents/planorama:latest
volumes:
# NOTE: this will need to reflect local system
- /var/log/planorama/sidekiq:/opt/planorama/log
- type: tmpfs
target: /app/tmp
environment:
- PGID=1005
- PUID=1001
- RAILS_ENV=production
- NODE_ENV=production
env_file:
# NOTE: this will need to reflect local system
- "/opt/plano/etc/planorama.env"
depends_on:
- redis
links:
- redis
restart: always