-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.vps.yaml
More file actions
70 lines (64 loc) · 1.43 KB
/
docker-compose.vps.yaml
File metadata and controls
70 lines (64 loc) · 1.43 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
version: '3.1'
# Do not use this configuration. It in develop yet
services:
nginx:
image: nginx:stable-alpine
container_name: fc-nginx
ports:
- "5000:80"
volumes:
- ./nginx/nginx.conf.prod:/etc/nginx/conf.d/nginx.conf
depends_on:
- fc-api
fc-api:
image: "node:18"
container_name: fc-api
working_dir: /home/node/app
volumes:
- ./app:/home/node/app
links:
- db
- users
command: npm run start
environment:
- SALT=${SALT}
- SALT2=${SALT2}
- APP_NAME=${APP_NAME}
- API_KEY=${API_KEY}
- DB_USERNAME=${DB_USER}
- DB_PASS=${DB_PASS}
depends_on:
- db
- users
users:
image: docker.io/bitnami/laravel:8
container_name: users
environment:
- SALT=${SALT}
- SALT2=${SALT2}
- DB_HOST=db
- DB_PORT=3306
- DB_USERNAME=${DB_USER}
- DB_DATABASE=${DB_PASS}
volumes:
- './users:/app'
depends_on:
- db
fc-notify:
image: "node:18"
container_name: fc-notify
working_dir: /home/node/app
volumes:
- ./notify:/home/node/app
command: npm run start
environment:
- EMAIL_KEY=${EMAIL_KEY}
- MAIL_URL=${MAIL_URL}
db:
image: mysql:latest
command: --default-authentication-plugin=mysql_native_password
restart: always
volumes:
- ./db/mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASS}