-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
78 lines (72 loc) · 1.55 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
75
76
77
78
version: '3.0'
x-aws-loadbalancer: ${AWS_LOADBALANCER}
# This is the docker-compose to be used for AWS ECS Deployment
services:
backend:
image: ${DOCKERHUB_USERNAME}/${BACKEND_IMAGE_NAME}:latest
x-aws-pull_credentials: ${AWS_DOCKERHUB_TOKEN}
deploy:
resources:
limits:
cpus: '1.0'
memory: 2048m
build:
context: backend
ports:
- ${SERVER_PORT}:${SERVER_PORT}
networks:
- webnet
depends_on:
- database
frontend:
image: ${DOCKERHUB_USERNAME}/${FRONTEND_IMAGE_NAME}:latest
x-aws-pull_credentials: ${AWS_DOCKERHUB_TOKEN}
deploy:
resources:
limits:
cpus: '1.0'
memory: 2048m
build:
context: frontend
volumes:
- data-frontend:frontend/usr/src/app
ports:
- ${FRONTEND_PORT}:${FRONTEND_PORT}
networks:
- webnet
depends_on:
- backend
database:
image: postgres:14
deploy:
resources:
limits:
cpus: '1.0'
memory: 2048m
networks:
- webnet
environment:
POSTGRES_DB: ${DB_DATABASE}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
ports:
- ${DB_PORT}:5432
volumes:
- dbdata:/var/lib/postgresql/data
#nocodb:
# container_name: nocodb
# image: nocodb/nocodb:latest
# networks:
# - webnet
# ports:
# - ${NOCODB_PORT}:${NOCODB_PORT}
# volumes:
# - nocodbdata:/usr/app/data
# depends_on:
# - database
networks:
webnet:
volumes:
dbdata:
#nocodbdata:
data-frontend: