2024-01-28 22:19:41 +03:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
postgres-data:
|
|
|
|
|
|
|
|
services:
|
|
|
|
app:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
volumes:
|
|
|
|
- ../..:/workspaces:cached
|
2024-01-29 02:10:55 +03:00
|
|
|
- ${SSH_AUTH_SOCK}:/tmp/ssh-agent.socket
|
2024-01-28 22:19:41 +03:00
|
|
|
command: sleep infinity
|
|
|
|
network_mode: service:db
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: postgres:15-alpine3.17
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- postgres-data:/var/lib/postgresql/data
|
|
|
|
env_file:
|
|
|
|
- .env
|