-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (42 loc) · 906 Bytes
/
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
version: '3'
services:
db:
container_name: 'db'
image: 'postgres:14.4-alpine'
environment:
- POSTGRES_PASSWORD=db_pwd
volumes:
- ./api/tmp/db:/var/lib/postgresql/data
api:
platform: linux/x86_64 # Uncomment this line if you are on ARM based machines
container_name: 'api'
build:
context: api
dockerfile: Dockerfile.dev
volumes:
- ./api:/api
depends_on:
- db
environment:
- POSTGRES_PASSWORD=db_pwd
- REDIS_URL=redis://redis:6379/1
env_file: .env
ui:
container_name: 'ui'
build:
context: ui
dockerfile: Dockerfile.dev
volumes:
- /ui/node_modules
- ./ui:/ui
nginx:
container_name: 'nginx'
image: 'nginx:latest'
depends_on:
- api
- ui
restart: always
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- '5050:80'