GoScrobble/docker-compose.yml

55 lines
1.1 KiB
YAML
Raw Normal View History

2022-01-05 21:20:30 +00:00
version: "3.9"
2021-12-25 09:24:47 +00:00
2022-01-05 21:20:30 +00:00
services:
frontend:
image: node:16
volumes:
2022-04-25 02:47:15 +00:00
- ./web:/app
2022-01-05 21:20:30 +00:00
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:
2022-04-25 02:47:15 +00:00
image: golang:1.18
2022-01-05 21:20:30 +00:00
volumes:
- ./:/app
2021-12-25 09:24:47 +00:00
- data:/data
2022-01-05 21:20:30 +00:00
ports:
- "127.0.0.1:42069:42069"
restart: always
2021-12-25 09:24:47 +00:00
command: bash -c "cd /app && go mod tidy && go run cmd/goscrobble/*.go"
2022-01-05 21:20:30 +00:00
2021-12-25 09:24:47 +00:00
postgres:
image: postgres:14.1
2022-01-05 21:20:30 +00:00
volumes:
2021-12-25 09:24:47 +00:00
- database-data:/var/lib/postgresql/data/
2022-01-05 21:20:30 +00:00
ports:
2022-01-05 07:58:05 +00:00
- 5432:5432
2021-12-25 09:24:47 +00:00
restart: always
2022-01-05 21:20:30 +00:00
environment:
2021-12-25 09:24:47 +00:00
- POSTGRES_USER=goscrobble
- POSTGRES_PASSWORD=supersecretdatabasepassword1
- POSTGRES_DB=goscrobble
2022-01-05 21:20:30 +00:00
redis:
image: redis:6.2
ports:
- "127.0.0.1:6379:6379"
2022-01-05 07:58:05 +00:00
pgadmin:
container_name: pgadmin4_container
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: root
ports:
- "5050:80"
2022-01-05 21:20:30 +00:00
volumes:
2021-12-25 09:24:47 +00:00
database-data:
data: