-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (61 loc) · 2.44 KB
/
docker-compose.yml
File metadata and controls
66 lines (61 loc) · 2.44 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: "3.7"
services:
# ====================================================================================================================
# JAVA SERVER - USING MULTI-STAGE BUILD
# ====================================================================================================================
games:
build:
context: ./
dockerfile: docker/Dockerfile
args:
JAVA_SERVER_PORT: ${JAVA_SERVER_PORT}
container_name: games-app
ports:
- "${JAVA_SERVER_PORT:-9000}:${JAVA_SERVER_PORT:-9000}"
environment:
- JAVA_SERVER_PORT=${JAVA_SERVER_PORT:-9000}
restart: unless-stopped
# ====================================================================================================================
# POSTGRES SERVER
# ====================================================================================================================
pg-docker:
image: postgres:15-alpine
container_name: dev-postgresql
environment:
POSTGRES_DB: ${POSTGRES_DB:-mydatabase}
POSTGRES_USER: ${POSTGRES_USER:-devuser}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-1234567}
ports:
- "${POSTGRES_PORT:-5433}:5432"
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- dev-network
# ====================================================================================================================
# PGADMIN
# ====================================================================================================================
pgadmin-docker:
image: dpage/pgadmin4
container_name: dev-pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-me@example.com}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-1234567}
ports:
- "5050:80"
volumes:
- ./.data/postgresql/data:/var/lib/pgadmin
depends_on:
- pg-docker
networks:
- dev-network
# ======================================================================================================================
# NETWORK
# ======================================================================================================================
networks:
dev-network:
driver: bridge
# ======================================================================================================================
# VOLUMES
# ======================================================================================================================
volumes:
pgdata: