forked from chiefonboarding/ChiefOnboarding
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (51 loc) · 1.14 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
version: '3'
services:
db:
restart: always
image: postgres:latest
expose:
- "5432"
volumes:
- pgdata:/var/lib/postgresql/data/
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
networks:
- global
web:
restart: always
build:
dockerfile: ./Dockerfile-dev
context: ./back/
ports:
- "8000:8000"
environment:
- DEBUG=True
- SECRET_KEY=somethingsupersecret
- BASE_URL=http://0.0.0.0:3000
- DATABASE_URL=postgres://postgres:postgres@db:5432/postgres
- DEFAULT_FROM_EMAIL=hello@chiefonboarding.com
- ACCOUNT_EMAIL=admin@example.com
- ACCOUNT_PASSWORD=admin
volumes:
- ./back:/app
depends_on:
- db
networks:
- global
nuxt:
image: node:14
environment:
- HOST=0.0.0.0
ports:
- "3000:3000"
volumes:
- ./front:/app
command: bash -c "cd /app && npm install && cd /app/node_modules/fibers/ && npm install && cd /app && npm install -g nuxt && npm run dev"
networks:
- global
volumes:
pgdata:
networks:
global: