forked from jak103/powerplay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
88 lines (83 loc) · 2.33 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
80
81
82
83
84
85
86
87
services:
site:
image: site:latest
build: ./site
container_name: site
working_dir: /powerplay/site
volumes:
- /powerplay/site/node_modules
- ./site:/powerplay/site
ports:
- 9000:9000
environment:
NODE_ENV: development
command: npm run dev
app:
image: app:latest
build: ./app
container_name: app
working_dir: /powerplay/app
volumes:
- /powerplay/app/node_modules
- ./app:/powerplay/app
ports:
- 9001:9000
environment:
NODE_ENV: development
command: npm run dev
backend:
image: backend:latest
build: ./backend
container_name: backend
working_dir: /powerplay/backend
volumes:
- /powerplay/tmp # Anonymous mount for air temp directory
- ./backend:/powerplay/backend
- ./static:/powerplay/static
- ./config:/powerplay/config
ports:
- 9002:9002
depends_on:
database:
condition: service_healthy
command: air -c air/backend.toml
database:
image: postgres:16
container_name: db
restart: always
volumes:
- ./db:/docker-entrypoint-initdb.d
ports:
- 5432:5432
environment:
- PGUSER=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- POSTGRES_DB=powerplay
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
# api-redis:
# image: redis:7-alpine
# container_name: api-redis
# ports:
# - 7379:6379 # this allows us to view the cache in a gui
# cypress:
# image: cypress/included:cypress-12.5.1-node-16.18.1-chrome-109.0.5414.74-1-ff-109.0-edge-109.0.1518.52-1
# container_name: devsite-cypress
# restart: always
# working_dir: /frontend
# network_mode: host # This will resolve localhost:5173 in the container
# depends_on:
# - devsite-db
# volumes:
# - ./frontend:/frontend
# - ./e2e:/e2e
# - ./build:/build
# entrypoint: tail -f /dev/null
# # Above entrypoint keep the container running, so we can hop in the container and
# # run cypress within the container by using `npm run test:e2e:ci:BROWSER`, where
# # BROWSER options are chrome, firefox and edge. We can also replace the entrypoint
# # above with the npm command, but it all logs will make the output really noisy.