-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (56 loc) · 1.15 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
version: "3.7"
services:
# redis:
# image: redis:alpine
# restart: always
# networks:
# - internal
database:
image: postgres:11-alpine
restart: always
volumes:
- rails_universal_api_data:/var/lib/postgresql/data
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
networks:
- internal
# redis requires a depends on
# redis requires a host
rails_universal_api:
build:
context: .
dockerfile: Dockerfile
restart: always
volumes:
- .:/rails_universal_api
ports:
- "3003:3003"
depends_on:
- database
networks:
- internal
environment:
- PGHOST=database
- PGUSER=postgres
- EXPOSE_PORT=3003
# sidekiq:
# build:
# context: .
# dockerfile: Dockerfile
# entrypoint: [docker_entrypoints/sidekiq_entrypoint.sh]
# restart: always
# environment:
# - PGHOST=database
# - PGUSER=postgres
# - REDIS_HOST=redis://redis
# depends_on:
# - rails_universal_api
# - database
# - redis
# networks:
# - internal
volumes:
rails_universal_api_data:
networks:
internal:
driver: bridge