generated from trywilco/Anythink-Market-Public
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (57 loc) · 1.82 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
version: "3.8"
services:
anythink-backend-rails:
build: ./backend
container_name: anythink-backend-rails
command: sh -c "cd backend && bundle install && /wait-for-it.sh postgres-rails:5432 -q -t 60 && ./start_rails.sh"
working_dir: /usr/src
volumes:
- ./:/usr/src/
ports:
- "3000:3000"
environment:
- RAILS_ENV=development
- PORT=3000
- DATABASE_URL=postgres://user:@postgres-rails:5432
- GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN=${GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN}
depends_on:
- "postgres-rails"
anythink-frontend-react:
build: ./frontend
container_name: anythink-frontend-react
command: sh -c "cd frontend && yarn install && /wait-for-it.sh anythink-backend-rails:3000 -t 120 --strict -- curl --head -X GET --retry 30 --retry-connrefused --retry-delay 1 anythink-backend-rails:3000/api/ping && yarn start"
environment:
- NODE_ENV=development
- PORT=3001
- REACT_APP_BACKEND_URL=${CODESPACE_BACKEND_URL:-http://localhost:3000}
- WDS_SOCKET_PORT=${CODESPACE_WDS_SOCKET_PORT:-3001}
working_dir: /usr/src
volumes:
- ./:/usr/src/
- /usr/src/frontend/node_modules
ports:
- "3001:3001"
depends_on:
- "anythink-backend-rails"
postgres-rails:
container_name: postgres-rails
restart: on-failure
image: postgres
logging:
driver: none
environment:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_USER: user
POSTGRES_PASSWORD: password
volumes:
- ~/posgres/data:/data/db
ports:
- '5433:5432'
anythink-ack:
image: public.ecr.aws/v0a2l7y2/wilco/anythink-ack:latest
container_name: anythink-ack
environment:
- GITHUB_TOKEN=$GITHUB_TOKEN
- CODESPACE_NAME=$CODESPACE_NAME
depends_on:
- "anythink-frontend-react"