-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·48 lines (48 loc) · 1.03 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
version: "3.9"
services:
db:
image: postgres
volumes:
- ./api-swihla/tmp/db:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: password
web:
build:
context: ./api-swihla
dockerfile: Dockerfile
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
volumes:
- ./api-swihla:/myapp
- railsgems:/usr/local/bundle
ports:
- "3040:3000"
depends_on:
- db
client:
build:
context: ./front-swihla
dockerfile: Dockerfile
command: npm start
volumes:
- ./front-swihla:/usr/src/app
- /usr/src/app/node_modules
depends_on:
- web
ports:
- "3050:3000"
postgresql_pgadmin:
image: dpage/pgadmin4
restart: always
labels:
name: "db-pgadmin"
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: password
ports:
- 8088:80
volumes:
- pgadmin-data:/var/lib/pgadmin
# tty: true
volumes:
railsgems:
pgadmin-data: