-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (52 loc) · 1.05 KB
/
docker-compose.yml
File metadata and controls
53 lines (52 loc) · 1.05 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
version: '3'
services:
init:
build: .
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:
build: .
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
- init
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: