-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
40 lines (40 loc) · 942 Bytes
/
docker-compose-dev.yml
File metadata and controls
40 lines (40 loc) · 942 Bytes
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
version: '3.8'
services:
server:
build:
context: .
dockerfile: ./Dockerfile
image: docker.pkg.github.com/coryball/backend-template/template-server
ports:
- "4000:4000"
depends_on:
- postgres
- redis
env_file: env/dev.env
postgres:
container_name: backend_template_database
image: postgres:13.2
ports:
- "5432:5432"
expose:
- "5432"
environment:
POSTGRES_USER: $DATABASE_USERNAME
POSTGRES_PASSWORD: $DATABASE_PASSWORD
POSTGRES_DB: $DATABASE_NAME
POSTGRES_PORT: $DATABASE_PORT
PGDATA: /data/postgres
env_file: env/dev.env
volumes:
- ./.docker/data/:/data/postgres
- ./.docker/psql_scripts/:/docker-entrypoint-initdb.d/
redis:
container_name: redis
image: redis:alpine3.13
restart: unless-stopped
ports:
- "6379:6379"
expose:
- 6379
volumes:
- ./.docker/redis:/data