-
Notifications
You must be signed in to change notification settings - Fork 44
/
docker-compose-dev.yml
73 lines (68 loc) · 1.55 KB
/
docker-compose-dev.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
services:
fittrackee-db:
container_name: fittrackee-db
image: postgres:13
ports:
- "5435:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- ./data/db:/var/lib/postgresql/data
- ./db/create.sql:/docker-entrypoint-initdb.d/create.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 15s
retries: 3
fittrackee:
container_name: fittrackee
build: .
ports:
- "5000:5000"
env_file:
- .env
depends_on:
fittrackee-db:
condition: service_healthy
redis:
condition: service_started
mail:
condition: service_started
volumes:
- .:/usr/src/app
- ./data/uploads:/usr/src/app/uploads
fittrackee_client:
container_name: fittrackee_client
environment:
- NODE_ENV=development
- VITE_APP_API_URL=http://localhost:5000
build:
context: ./fittrackee_client
volumes:
- ./fittrackee_client:/usr/src/app
- /usr/src/app/node_modules
depends_on:
- fittrackee
ports:
- "3000:3000"
stdin_open: true
tty: true
command: /bin/sh
redis:
container_name: fittrackee-redis
image: "redis:latest"
hostname: redis
ports:
- "6379:6379"
mail:
container_name: fittrackee-mailhog
image: "mailhog/mailhog"
ports:
- "1025:1025"
- "8025:8025"
selenium:
image: selenium/standalone-firefox:latest
hostname: selenium
privileged: true
shm_size: 2g