-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml.example
97 lines (90 loc) · 2.35 KB
/
docker-compose.yml.example
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
version: "2"
# SkyOS runtime configuration settings
#
x-skyOS-environment: &environment
DATABASE_URL: postgres://skyOS:super_secret_password@db:5432/skyOS_production
RAILS_HOSTNAME: my_va_url.org
RAILS_LOG_TO_STDOUT: 1
RAILS_SERVE_STATIC_FILES: 1
REDIS_URL: redis://redis:6379
SECRET_KEY_BASE: change_me_to_a_super_secret_long_key_here
SMTP_SERVER: smtp.example.com
SMTP_PORT: 587
SMTP_USERNAME: smtp_user
SMTP_PASSWORD: smtp_password
networks:
backend:
driver: bridge
public:
driver: bridge
services:
# PostgreSQL container (if you do not have an external database server)
#
# db:
# environment:
# POSTGRES_DB: skyOS_production
# POSTGRES_USER: skyOS
# POSTGRES_PASSWORD: super_secret_password
# image: postgres:10-alpine
# networks:
# - backend
# volumes:
# - db:/var/lib/postgresql/data
# Redis container (if you do not have an external redis server)
#
# redis:
# image: redis:6-alpine
# networks:
# - backend
# skyOS web server (serves public requests on port 3000)
# Typically this will sit behind a load balancer or other TLS middleware
#
app:
# Choose one of the following (build, image (Github), image (DockerHub))
#
# build: .
# image: docker.pkg.github.com/lonestarvirtual/skyos/skyos:latest
# image: lonestarvirtual/skyos:latest
#
environment:
<<: *environment
# Expose and map the web port to your host (if necessary)
# ports:
# - "3000:3000"
networks:
- backend
- public
volumes:
- storage:/app/storage
# Uncomment if you are using the above DB and Redis containers
#
# depends_on:
# - db
# - redis
# skyOS job worker (processes background jobs)
#
worker:
# Choose one of the following (build, image (Github), image (DockerHub))
#
# build: .
# image: docker.pkg.github.com/lonestarvirtual/skyos/skyos:latest
# image: lonestarvirtual/skyos:latest
#
command: bundle exec sidekiq
environment:
<<: *environment
networks:
- backend
volumes:
- storage:/app/storage
# Uncomment if you are using the above DB and Redis containers
#
# depends_on:
# - db
# - redis
volumes:
# Uncomment if you are using the included Postgres container
# db:
# external: false
storage:
external: false