-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
79 lines (76 loc) · 1.65 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: "3.7"
services:
api:
build:
context: ./backend
dockerfile: docker/Dockerfile
args:
bundler_version: 2.5.6
networks:
- kinetic
ports:
- "4006:4006"
command: bash -c "rm -rf tmp/pids/*.pid && bundle exec rails server -b '0.0.0.0' -p 4006"
environment:
- DB_HOST=postgres
- DB_USER=kinetic
- DB_PASS=kinetic
- DB_NAME=kinetic_development
- TEST_DB_HOST=postgres_test
- TEST_DB_NAME=kinetic_test
- TEST_DB_USER=kinetic
- TEST_DB_PASS=kinetic
depends_on:
- postgres
- postgres_test
volumes:
- .:/code
- gems:/gems
frontend:
build:
context: ./frontend
dockerfile: docker/Dockerfile
networks:
- kinetic
volumes:
- ./frontend/src:/app/src
ports:
- "4000:4000"
command: yarn run docker:dev
depends_on:
- api
environment:
- API_ADDRESS=http://localhost:4006
postgres:
image: "postgres:13"
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- kinetic
environment:
- POSTGRES_USER=kinetic
- POSTGRES_PASSWORD=kinetic
- POSTGRES_DB=kinetic_development
postgres_test:
image: "postgres:13"
networks:
- kinetic
environment:
- POSTGRES_USER=kinetic
- POSTGRES_PASSWORD=kinetic
- POSTGRES_DB=kinetic_test
petstore:
image: "swaggerapi/petstore3"
networks:
- kinetic
environment:
- SWAGGER_HOST=http://0.0.0.0:4008
- SWAGGER_BASE_PATH=/api/v1
- SWAGGER_URL=http://0.0.0.0:4006
ports:
- "4008:8080"
networks:
kinetic:
volumes:
pgdata:
gems: