-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (67 loc) · 1.88 KB
/
Copy pathdocker-compose.yml
File metadata and controls
74 lines (67 loc) · 1.88 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
version: '3.8'
services:
redis:
image: "redis:7-alpine"
volumes:
- ./storage:/root/app/storage
- ./uploads:/root/app/uploads
- ./tmp/redis_data:/var/lib/redis/data
networks:
- twilightnet
twilight_db:
image: postgres
container_name: twilight_db
env_file:
- .env
volumes:
- .db-data:/var/lib/postgresql/pgdata
networks:
- twilightnet
twilight:
#build: .
image: twilight:latest
container_name: twilight
restart: on-failure
ports:
- "${PORT}:${PORT}"
env_file: .env
environment:
- DOCKERIZED=true
- HOST_URL=${HOST_URL}
- RAILS_ENV=${RAILS_ENV}
- PORT=${PORT}
- POSTGRES_HOST=${POSTGRES_HOST}
- POSTGRES_PORT=${POSTGRES_PORT}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
# Traefik example
# labels:
# - "traefik.enable=true"
# - "traefik.port=${PORT}"
# - "traefik.http.services.twilight.loadbalancer.server.port=${PORT}"
# - "traefik.http.routers.twilight.rule=Host(`twilight.example.com`)" # change this
# - "traefik.http.routers.twilight.entrypoints=http"
# - "traefik.http.routers.twilight.middlewares=twilight-secure-redirect"
# - "traefik.http.middlewares.twilight-secure-redirect.redirectscheme.scheme=https"
# - "traefik.http.routers.twilight-secure.rule=Host(`twilight.example.com`)" # change this
# - "traefik.http.routers.twilight-secure.entrypoints=https"
# - "traefik.http.routers.twilight-secure.tls=true"
depends_on:
- twilight_db
- redis
links:
- twilight_db:twilight_db
volumes:
- ./config:/root/app/config
- .env:/root/app/.env
tty: true
stdin_open: true
networks:
- twilightnet
networks:
twilightnet:
external: false
volumes:
db-data:
external: false