-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (36 loc) · 817 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (36 loc) · 817 Bytes
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
version: '3'
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- PORT=3000
- PIDFILE=/usr/src/app/tmp/pids/server.pid
- RAILS_ENV=development
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=development
- DATABASE_HOST=database.service.licenses.internal
networks:
- internal
depends_on:
- database.service.licenses.internal
database.service.licenses.internal:
image: postgres:14.1-alpine
volumes:
- pg_data:/var/lib/postgresql/data
networks:
- internal
environment:
- POSTGRES_PASSWORD=development
redis.service.licenses.internal:
image: redis:6.2-alpine
networks:
- internal
volumes:
pg_data:
networks:
internal:
driver: bridge