-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
74 lines (69 loc) · 1.84 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
version: "3.8"
services:
server:
build: ./server
container_name: node_server_container
depends_on:
- postgres-db
env_file:
- .env
environment:
WAIT_HOSTS: postgres-db:5432
ports:
- 3001:3001
volumes:
- /app/node_modules
- ./server:/app
command: npm run dev
restart: on-failure
client:
build: ./client
container_name: client_container
env_file:
- .env
environment:
- GENERATE_SOURCEMAP=false
- NODE_PATH=src
- WATCHPACK_POLLING=true
- CHOKIDAR_USEPOLLING=true
ports:
- 3000:3000
volumes:
- ./client/src:/app/src
links:
- server
extra_hosts:
- "host.docker.internal:host-gateway"
command: npm start
postgres-db:
container_name: pg_container
image: postgres
restart: always
environment:
POSTGRES_USER: hypertube
POSTGRES_PASSWORD: root
POSTGRES_DB: hypertube
TZ: 'Europe/Helsinki'
PGTZ: 'Europe/Helsinki'
volumes:
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5432:5432"
pgadmin:
container_name: pgadmin4_container
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: hyper@tube.com
PGADMIN_DEFAULT_USER: hypertube
PGADMIN_DEFAULT_PASSWORD: root
GUNICORN_ACCESS_LOGFILE: "/dev/null"
ports:
- "8080:80"
volumes:
- ./db/servers.json:/pgadmin4/servers.json
logging:
driver: none
networks:
default:
name: "hypertube_network"