-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (65 loc) · 1.3 KB
/
docker-compose.yml
File metadata and controls
70 lines (65 loc) · 1.3 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
67
68
69
70
version: "3.9"
services:
# NestJS Service
api:
build:
context: ./api
dockerfile: Dockerfile
container_name: meme-me-nest-docker-postgres
ports:
- 3030:3030
env_file:
- .env.api
volumes:
- ./api:/usr/src/app/api
depends_on:
- db
environment:
- PORT=3030
networks:
- meme-me
# NextJS Service
client:
build:
context: ./client
container_name: meme-me-next-docker
ports:
- 3000:3000
env_file:
- .env.client
networks:
- meme-me
depends_on:
- api
volumes:
- ./client:/usr/src/app/client
- /usr/src/app/client/node_modules
- /usr/src/app/client/.next
# Database Postgres Connection
db:
image: postgres:latest
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=meme-me-db
container_name: postgres
volumes:
- ./pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
# Postgres Admin
dbadmin:
image: dpage/pgadmin4
restart: always
container_name: nest-pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: pgadmin4
ports:
- 5050:80
depends_on:
- db
networks:
meme-me:
driver: bridge