-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
38 lines (38 loc) · 825 Bytes
/
docker-compose.yaml
File metadata and controls
38 lines (38 loc) · 825 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
version: "3"
services:
server:
build:
dockerfile: Dockerfile.dev
context: ./server
restart: always
depends_on:
- postgres
- redis
volumes:
- ./server:/code
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- PGUSER=postgres
- PGHOST=postgres
- PGDATABASE=postgres
- POSTGRES_PASSWORD=postgres_password
- PGPORT=5432
ports:
- "80:80"
postgres:
image: "postgres:latest"
environment:
- POSTGRES_PASSWORD=postgres_password
# pgadmin:
# image: dpage/pgadmin4
# restart: always
# ports:
# - 8080:80
# environment:
# - PGADMIN_DEFAULT_EMAIL=admin@admin.com
# - PGADMIN_DEFAULT_PASSWORD=postgres_password
# depends_on:
# - postgres
redis:
image: "redis:latest"