Created
June 11, 2025 12:07
-
-
Save koi-tattoo/5f91de153768865d6d29f3773564a75d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3.8' | |
| services: | |
| web: | |
| image: nginx:alpine | |
| ports: | |
| - "8080:80" | |
| environment: | |
| - NGINX_HOST=localhost | |
| - NGINX_PORT=80 | |
| volumes: | |
| - ./html:/usr/share/nginx/html:ro | |
| api: | |
| image: node:18-alpine | |
| ports: | |
| - "3000:3000" | |
| environment: | |
| NODE_ENV: development | |
| PORT: 3000 | |
| command: ["node", "-e", "const http = require('http'); const server = http.createServer((req, res) => { res.writeHead(200, {'Content-Type': 'application/json'}); res.end(JSON.stringify({message: 'Hello from Apple Container!', timestamp: new Date().toISOString()})); }); server.listen(3000, '0.0.0.0', () => console.log('API server running on port 3000'));"] | |
| depends_on: | |
| - redis | |
| redis: | |
| image: redis:7-alpine | |
| command: redis-server --appendonly yes | |
| environment: | |
| - REDIS_REPLICATION_MODE=master | |
| postgres: | |
| image: postgres:15-alpine | |
| environment: | |
| POSTGRES_DB: testdb | |
| POSTGRES_USER: testuser | |
| POSTGRES_PASSWORD: testpass | |
| volumes: | |
| - postgres_data:/var/lib/postgresql/data | |
| volumes: | |
| postgres_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment