2021-01-31 11:30:37 +01:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
fittrackee-db:
|
|
|
|
container_name: fittrackee-db
|
|
|
|
build: ./db
|
|
|
|
ports:
|
2021-10-16 19:15:51 +02:00
|
|
|
- "5435:5432"
|
2021-01-31 11:30:37 +01:00
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=postgres
|
|
|
|
- POSTGRES_PASSWORD=postgres
|
2021-10-18 16:26:37 +02:00
|
|
|
volumes:
|
|
|
|
- ./data/db:/var/lib/postgresql/data
|
|
|
|
|
2021-01-31 11:30:37 +01:00
|
|
|
fittrackee:
|
|
|
|
container_name: fittrackee
|
|
|
|
build: .
|
|
|
|
ports:
|
2021-10-16 19:15:51 +02:00
|
|
|
- "5000:5000"
|
2021-01-31 11:30:37 +01:00
|
|
|
env_file:
|
|
|
|
- .env.docker
|
|
|
|
depends_on:
|
|
|
|
- fittrackee-db
|
|
|
|
- redis
|
|
|
|
- mail
|
|
|
|
links:
|
|
|
|
- fittrackee-db
|
|
|
|
- redis
|
|
|
|
- mail
|
2021-10-16 20:16:49 +02:00
|
|
|
volumes:
|
|
|
|
- .:/usr/src/app
|
2021-10-18 16:26:37 +02:00
|
|
|
- ./data/workouts:/usr/src/app/workouts
|
|
|
|
- ./data/uploads:/usr/src/app/uploads
|
2021-01-31 11:30:37 +01:00
|
|
|
|
2021-10-16 19:22:23 +02:00
|
|
|
fittrackee_client:
|
|
|
|
container_name: fittrackee_client
|
|
|
|
environment:
|
|
|
|
- NODE_ENV=development
|
2021-11-06 22:18:38 +01:00
|
|
|
- VUE_APP_API_URL=http://localhost:5000
|
2021-10-16 19:22:23 +02:00
|
|
|
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
|
|
|
|
|
2021-01-31 11:30:37 +01:00
|
|
|
redis:
|
|
|
|
container_name: fittrackee-redis
|
|
|
|
image: "redis:latest"
|
|
|
|
hostname: redis
|
|
|
|
ports:
|
2021-10-16 19:15:51 +02:00
|
|
|
- "6379:6379"
|
2021-01-31 11:30:37 +01:00
|
|
|
|
|
|
|
mail:
|
|
|
|
container_name: fittrackee-mailhog
|
|
|
|
image: "mailhog/mailhog"
|
|
|
|
ports:
|
2021-10-16 19:15:51 +02:00
|
|
|
- "1025:1025"
|
|
|
|
- "8025:8025"
|