-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
80 lines (77 loc) · 2.07 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: "3.7"
services:
db:
image: postgres:13.5-alpine3.15
volumes:
- postgres-volume:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?psql password missing}
frontend:
image: ghcr.io/timhabermaas/cubemania_frontend:edge
build:
context: ./frontend
dockerfile: Dockerfile
nginx:
image: ghcr.io/timhabermaas/cubemania_nginx:edge
build:
context: nginx
dockerfile: Dockerfile
depends_on:
- api
- web
- frontend
nginx-ssl:
image: ghcr.io/timhabermaas/cubemania_nginx-ssl:edge
build:
context: nginx-ssl
dockerfile: Dockerfile
depends_on:
- nginx
api:
image: ghcr.io/timhabermaas/cubemania_api:edge
build:
context: ./api
dockerfile: Dockerfile
environment:
RUST_LOG: info
RUST_BACKTRACE: 1
HMAC_SECRET: ${HMAC_SECRET}
DATABASE_URL: postgresql://postgres:${POSTGRES_PASSWORD}@db/cubemania_production
depends_on:
- db
web:
image: ghcr.io/timhabermaas/cubemania_rails:edge
build: .
command: bundle exec unicorn -p 3000 -c ./config/unicorn.rb
volumes:
- .:/cubemania
depends_on:
- db
- cache
environment:
RAILS_ENV: production
DATABASE_URL: postgresql://postgres:${POSTGRES_PASSWORD}@db/cubemania_production
HMAC_SECRET: ${HMAC_SECRET}
EMAIL_PASSWORD: ${EMAIL_PASSWORD}
NEW_RELIC_ID: ${NEW_RELIC_ID}
NEW_RELIC_APP_NAME: ${NEW_RELIC_APP_NAME-do}
NEW_RELIC_LICENSE_KEY: ${NEW_RELIC_LICENSE_KEY}
SECRET_TOKEN: ${SECRET_TOKEN}
cache:
image: memcached:alpine
command: memcached -m 64
backup:
image: ghcr.io/timhabermaas/cubemania_backup:edge
build:
context: backup
dockerfile: Dockerfile
links:
- db
environment:
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
AWS_DEFAULT_REGION: ${AWS_DEFAULT_REGION}
AWS_BUCKET_NAME: ${AWS_BUCKET_NAME}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
postgres-volume: