-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
74 lines (72 loc) · 2.86 KB
/
docker-compose.yml
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
67
68
69
70
71
72
73
74
# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * #
# #
# __ __ ______ ______ ________ _______ #
# / \ / | / \ / \ / |/ \ #
# $$ \ $$ |/$$$$$$ |/$$$$$$ |$$$$$$$$/ $$$$$$$ | #
# $$$ \$$ |$$ | $$/ $$ | $$ | $$ | $$ |__$$ | #
# $$$$ $$ |$$ | $$ | $$ | $$ | $$ $$< #
# $$ $$ $$ |$$ | __ $$ | $$ | $$ | $$$$$$$ | #
# $$ |$$$$ |$$ \__/ |$$ \__$$ | $$ | $$ |__$$ | #
# $$ | $$$ |$$ $$/ $$ $$/ $$ | $$ $$/ #
# $$/ $$/ $$$$$$/ $$$$$$/ $$/ $$$$$$$/ #
# #
# #
# New Coders on the Block #
# —————————————————————————————————————————————————————————————————————— #
# Mpeerdem | https://github.com/Maqrkk #
# Rpet | https://github.com/rpet91 #
# Mraasvel | https://github.com/mraasvel #
# Ikole | https://github.com/K1ngmar #
# Nvan-aac | https://github.com/vanaacken #
# #
# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * #
version: "3.0"
services:
# Frontend Service
frontend:
container_name: frontend
build: ./src/frontend
depends_on:
- backend
volumes:
- ./src/frontend/app:/app
ports:
- 8080:8080
restart: on-failure
# Backend Service
backend:
container_name: backend
build: ./src/backend
depends_on:
- postgres
volumes:
- ./src/backend/app:/app
env_file:
- ./src/backend/.env
ports:
- 3000:3000
restart: on-failure
# PostgreSQL Service
postgres:
container_name: postgres
build: ./src/postgres
env_file:
- "./src/postgres/postgres.env"
volumes:
- pgdata:/var/lib/postgresql/data/
restart: on-failure
# PgAdmin (v4) Service
pgadmin:
container_name: pgadmin
build: ./src/pgadmin
depends_on:
- postgres
env_file:
- "./src/pgadmin/config/pgadmin.env"
volumes:
- pgadmin_data:/var/lib/pgadmin
ports:
- 5050:80
volumes:
pgdata:
pgadmin_data: