mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-23 08:55:18 +00:00
55 lines
1.1 KiB
YAML
55 lines
1.1 KiB
YAML
version: "3.9"
|
|
|
|
services:
|
|
frontend:
|
|
image: node:16
|
|
volumes:
|
|
- ./web:/app
|
|
restart: always
|
|
ports:
|
|
- "127.0.0.1:3000:3000"
|
|
environment:
|
|
- REACT_APP_API_URL=http://127.0.0.1:42069
|
|
command: bash -c "cd /app && npm install && yarn start"
|
|
|
|
backend:
|
|
image: golang:1.18
|
|
volumes:
|
|
- ./:/app
|
|
- data:/data
|
|
ports:
|
|
- "127.0.0.1:42069:42069"
|
|
restart: always
|
|
command: bash -c "cd /app && go mod tidy && go run cmd/goscrobble/*.go"
|
|
|
|
postgres:
|
|
image: postgres:14.1
|
|
volumes:
|
|
- database-data:/var/lib/postgresql/data/
|
|
ports:
|
|
- 5432:5432
|
|
restart: always
|
|
environment:
|
|
- POSTGRES_USER=goscrobble
|
|
- POSTGRES_PASSWORD=supersecretdatabasepassword1
|
|
- POSTGRES_DB=goscrobble
|
|
|
|
redis:
|
|
image: redis:6.2
|
|
ports:
|
|
- "127.0.0.1:6379:6379"
|
|
|
|
pgadmin:
|
|
container_name: pgadmin4_container
|
|
image: dpage/pgadmin4
|
|
restart: always
|
|
environment:
|
|
PGADMIN_DEFAULT_EMAIL: admin@admin.com
|
|
PGADMIN_DEFAULT_PASSWORD: root
|
|
ports:
|
|
- "5050:80"
|
|
|
|
volumes:
|
|
database-data:
|
|
data:
|