-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
51 lines (49 loc) · 1.08 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
version: '3.4'
x-dev-service: &dev-service
build:
context: .
dockerfile: Dockerfile
target: dev
environment:
RAILS_ENV: development
env_file: .env.development.local
user: www
volumes:
- .:/usr/src/build
- node_modules:/usr/src/build/node_modules
services:
cat:
build:
context: .
dockerfile: Dockerfile
target: dev
env_file: .env.development.local
user: www
volumes:
- .:/usr/src/build:cached
- node_modules:/usr/src/build/node_modules
command: cat
tty: true
stdin_open: true
ports:
- '3135:3135'
- '5050:5050'
links:
- postgres
depends_on:
- postgres
environment:
RAILS_ENV: development
DEVELOPMENT_DATABASE_URL: postgresql://postgres:postgres@postgres/intercode_development
TEST_DATABASE_URL: postgresql://postgres:postgres@postgres/intercode_test
postgres:
image: postgres:16
expose:
- '5432'
environment:
POSTGRES_PASSWORD: postgres
volumes:
- pgdata:/var/lib/postgresql/data
volumes:
node_modules:
pgdata: