-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
50 lines (49 loc) · 1.01 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
version: '3'
services:
init:
image: eliasgruenewald/tira
command: bundle exec rails db:migrate
restart: "no"
networks:
- tira
depends_on:
- db
environment:
- DATABASE_HOST=db
- DATABASE_USERNAME=tira
- DATABASE_PASSWORD=tira
- DATABASE_NAME=tira
- DATABASE_TYPE=postgresql
app:
image: eliasgruenewald/tira
tty: true
networks:
- tira
ports:
- "3000:3000"
command: bundle exec rails s -b 0.0.0.0 -p 3000
restart: always
depends_on:
- db
- tira_migrate
environment:
- DATABASE_HOST=db
- DATABASE_USERNAME=tira
- DATABASE_PASSWORD=tira
- DATABASE_NAME=tira
- DATABASE_TYPE=postgresql
db:
image: postgres:alpine
restart: always
networks:
- tira
environment:
- POSTGRES_USER=tira
- POSTGRES_PASSWORD=tira
- POSTGRES_DB=tira
# encoding
- LANG=en_US.UTF-8
- LANGUAGE=en_US.UTF-8
- LC_ALL=en_US.UTF-8
networks:
tira: