-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose-dev.yaml
55 lines (54 loc) · 1.29 KB
/
compose-dev.yaml
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
version: '3.8'
services:
postgres:
image: 'postgres:latest'
restart: always
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USER}
POSTGRES_DB: ${DB_NAME}
DATABASE_URL: postgresql://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/postgres?schema=public
volumes:
- 'postgres_data:/var/lib/postgresql/data'
ports:
- '${DB_PORT}:${DB_PORT}'
networks:
- main_network
bot:
restart: always
depends_on:
- postgres
build:
context: challenge/bot
dockerfile: Dockerfile
volumes:
- ./challenge/bot:/home/pptruser/app
- ./challenge/bot/node_modules:/home/pptruser/app/node_modules
ports:
- '${XSSBOT_PORT}:${XSSBOT_PORT}'
command: [ "yarn", "start" ]
networks:
- main_network
environment:
XSSBOT_PORT: '${XSSBOT_PORT}'
XSSBOT_HOST: '${XSSBOT_HOST}'
web:
restart: always
build:
context: challenge/web
dockerfile: dev.Dockerfile
ports:
- '3000:3000'
depends_on:
- postgres
volumes:
- ./challenge/web:/app
- ./challenge/web/node_modules:/app/node_modules
- ./challenge/web/.next:/app/.next
networks:
- main_network
volumes:
postgres_data:
networks:
main_network:
external: true