-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.local.yml
More file actions
97 lines (89 loc) · 1.97 KB
/
docker-compose.local.yml
File metadata and controls
97 lines (89 loc) · 1.97 KB
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
version: '3'
services:
apiPodcast:
container_name: apiPodcast
image: node:13.10.1
restart: always
volumes:
- ./api:/var/www/html/api
command: npm run watch
working_dir: /var/www/html/api/src
environment:
PORT: 8000
JWT_SECRET: secret_key
DATABASE_URL: postgres://admin:secret@postgres/podcast
DATABASE_URL_INIT: postgres://admin:secret@postgres/template1
POSTGRES_USER: admin
POSTGRES_DATABASE: podcast
POSTGRES_PASSWORD: secret
POSTGRES_HOST: postgres
depends_on:
- postgres
networks:
- internal
ports:
- "8000:8000"
postgres:
image: postgres
environment:
POSTGRES_USER: admin
POSTGRES_DATABASE: podcast
POSTGRES_PASSWORD: secret
POSTGRES_HOST: postgres
networks:
- internal
volumes:
- ./pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
pgadminPodcast:
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: pwdpwd
networks:
- internal
volumes:
- pgadmin:/root/.pgadmin
ports:
- "5050:80"
restart: unless-stopped
depends_on:
- postgres
mailPodcast:
container_name: mailPodcast
restart: always
image: node:13.10.1
volumes:
- ./mailService:/var/www/html/mailService
command: npm run dev
networks:
- internal
working_dir: /var/www/html/mailService/src
environment:
JWT_SECRET: secret_key
PORT: 7000
ports:
- "7000:7000"
links:
- apiPodcast
mailServicePodcastWatch:
container_name: mailPodcast_watch
restart: always
image: node:13.10.1
volumes:
- ./mailService:/var/www/html/mailService
command: npm run watch
networks:
- internal
working_dir: /var/www/html/mailService/src
depends_on:
- mailPodcast
networks:
internal:
driver: bridge
volumes:
pgdata:
pgadmin:
sync:
api: