forked from PlanoramaEvents/planorama
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-staging.yml
More file actions
82 lines (77 loc) · 1.97 KB
/
docker-compose-staging.yml
File metadata and controls
82 lines (77 loc) · 1.97 KB
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
#
# This is sample docker file for use in a staging environment
#
# NOTE:
# You will need to create the pgdata and redis-data volumes:
# docker volume create --name=pgdata
# docker volume create --name=redis-data
#
version: '3.7'
volumes:
redis-data:
external: true
pgdata:
external: true
services:
redis:
image: redis:alpine
restart: always
volumes:
- redis-data:/data
postgres:
image: postgres:12-alpine
restart: always
env_file:
# NOTE: this will need to reflect local system
- "/opt/plano/etc/planorama.env"
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
web:
command: "/opt/planorama/script/planorama_start.sh"
image: ghcr.io/planoramaevents/planorama:staging
ports:
- 3000:3000
volumes:
# NOTE: this will need to reflect local system
- /var/log/planorama/web:/opt/planorama/log
- type: tmpfs
target: /app/tmp
# NOTE: this will need to reflect local system
- /opt/plano/etc/planorama:/config
environment:
- PGID=1005
- PUID=1001
- RAILS_ENV=staging
- NODE_ENV=staging
env_file:
# NOTE: this will need to reflect local system
- "/opt/plano/etc/planorama.env"
depends_on:
- redis
- postgres
restart: always
planorama-sidekiq:
command: "/opt/planorama/script/planorama_sidekiq.sh"
image: ghcr.io/planoramaevents/planorama:staging
volumes:
# NOTE: this will need to reflect local system
- /var/log/planorama/sidekiq:/opt/planorama/log
- type: tmpfs
target: /app/tmp
# NOTE: this will need to reflect local system
- /opt/plano/etc/planorama:/config
environment:
- PGID=1005
- PUID=1001
- RAILS_ENV=staging
- NODE_ENV=staging
env_file:
# NOTE: this will need to reflect local system
- "/opt/plano/etc/planorama.env"
depends_on:
- redis
links:
- redis
restart: always