-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
72 lines (72 loc) · 1.51 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
services:
nuxt:
container_name: nuxt
build:
context: .
dockerfile: ./nuxt/DockerFile
expose:
- 3000
ports:
- "3000:3000"
volumes:
- ./nuxt/:/app
# - ./nuxt/media:/app/media
env_file: ".env"
depends_on:
- db
db:
image: postgres
# restart: unless-stopped
shm_size: 128mb
expose:
- ${NUXT_POSTGRES_PORT}
ports:
- "${NUXT_POSTGRES_PORT}:${NUXT_POSTGRES_PORT}"
volumes:
- ./database:/var/lib/postgresql/data
environment:
POSTGRES_DB: ${NUXT_POSTGRES_DB}
POSTGRES_USER: ${NUXT_POSTGRES_USER}
POSTGRES_PASSWORD: ${NUXT_POSTGRES_PASSWORD}
# redis:
# image: redis:latest
# expose:
# - ${NUXT_REDIS_PORT}
# ports:
# - "${NUXT_REDIS_PORT}:${NUXT_REDIS_PORT}"
# command:
# - /bin/sh
# - -c
# - redis-server --requirepass "${NUXT_REDIS_PASSWORD}"
# environment:
# - REDIS_PASSWORD=${NUXT_REDIS_PASSWORD}
# - REDIS_PORT=${NUXT_REDIS_PORT}
# - REDIS_DATABASES=16
# nginx:
# image: nginx
# volumes:
# - ./nginx:/etc/nginx/conf.d
# ports:
# - "80:80"
# environment:
# - NGINX_PORT=80
# depends_on:
# - nuxt
# - db
# - redis
# adminer:
# image: adminer
# ports:
# - "8080:8080"
# depends_on:
# - db
# networks:
# - default
# mail:
# image: mailhog/mailhog
# expose:
# - 8025
# - 1025
# ports:
# - "8025:8025"
# - "1025:1025"