forked from espoo-dev/espoo-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (61 loc) · 1.52 KB
/
Copy pathdocker-compose.yml
File metadata and controls
66 lines (61 loc) · 1.52 KB
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
version: "3"
services:
espoo_db:
image: postgres:alpine
container_name: espoo_db
volumes:
- espoo_db_volume:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: 'postgres'
POSTGRES_HOST_AUTH_METHOD: 'trust'
ports:
- '5444:5432'
espoo_server:
image: edimossilva/espoo
build:
context: "./backend"
dockerfile: "dockerfile_rails"
container_name: espoo_server
volumes:
- ./backend:/app
- espoo_vendor:/app/vendor/
depends_on:
- espoo_db
- chrome
environment:
RAILS_MASTER_KEY: 'a667717bf0a47475b0582547379c816d'
DOCKER_ENV: 'true'
DATABASE_USERNAME: 'postgres'
DATABASE_PASSWORD: 'postgres'
DATABASE_HOST: 'espoo_db'
DATABASE_PORT: '5432'
DATABASE_NAME: 'espoo_db_name'
DEVISE_JWT_SECRET_KEY: 'e26a21cfca4fdf67cc4e82385ba2d6ea4fb83ad1f8f5'
HUB_URL: http://chrome:4444/wd/hub
tty: true
ports:
- "3000:3000"
entrypoint: /app/scripts/entrypoint.sh
chrome:
image: selenium/standalone-chrome:3.141.59-zirconium
container_name: espoo_chrome
volumes:
- /dev/shm:/dev/shm
frontend:
container_name: espoo_frontend
build:
context: "./frontend"
dockerfile: dev.Dockerfile
volumes:
- ./frontend:/frontend
- /frontend/node_modules
ports:
- 4000:4000
restart: unless-stopped
tty: true
command: yarn dev
volumes:
espoo_db_volume:
espoo_vendor:
# docker-compose up -d
# docker-compose exec espoo_server rspec