-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
72 lines (67 loc) · 1.8 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
version: "3.1"
services:
database:
image: postgres:13.1-alpine
restart: unless-stopped
volumes:
- dbdata:/var/lib/postgresql/data
ports:
- ${DB_PORT}:${DB_PORT}
environment:
POSTGRES_DB: ${DB_DATABASE}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
pgAdmin:
image: dpage/pgadmin4:4.27
restart: unless-stopped
ports:
- ${PGADMIN_PORT}:80
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
depends_on:
- database
api:
image: glass-base/api
restart: unless-stopped
build:
context: ./api/
dockerfile: Dockerfile
volumes:
- ./api/:/app
- /app/node_modules
ports:
- ${APP_BACKEND_PORT}:${APP_BACKEND_PORT}
environment:
PORT: ${APP_BACKEND_PORT}
DB_CLIENT: ${DB_CLIENT}
DB_HOST: ${DB_HOST}
DB_DATABASE: ${DB_DATABASE}
DB_PORT: ${DB_PORT}
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
DATABASE_URL: ${DATABASE_URL}
depends_on:
- database
glass-base-app:
image: glass-base/glass-base-app
restart: unless-stopped
build:
context: ./glass-base-app/
dockerfile: Dockerfile
volumes:
- ./glass-base-app/:/app
- /app/node_modules
ports:
- ${APP_FRONTEND_PORT}:${APP_FRONTEND_PORT}
environment:
# Nuxt needs this variable (HOST) when started from a container,
# otherwise you won’t be able to reach it.
HOST: 0.0.0.0
NUXT_ENV_PORT: ${APP_FRONTEND_PORT}
NUXT_ENV_DOMAIN: ${APP_FRONTEND_DOMAIN}
NUXT_ENV_API_PORT: ${APP_BACKEND_PORT}
NUXT_ENV_API_DOMAIN: ${APP_BACKEND_DOMAIN}
NUXT_ENV_GOOGLE_ANALYTICS_ID: ${GOOGLE_ANALYTICS_ID}
volumes:
dbdata: